
eu.cedarsoft.devtools.modules.EditIgnoreModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of subversion Show documentation
Show all versions of subversion Show documentation
Subversion modules for DevTools
The newest version!
package eu.cedarsoft.devtools.modules;
import com.google.inject.Inject;
import eu.cedarsoft.devtools.Module;
import eu.cedarsoft.devtools.SubversionMessageHandler;
import eu.cedarsoft.devtools.SubversionSupport;
import eu.cedarsoft.utils.CmdLine;
import org.jetbrains.annotations.NotNull;
/**
* Edits the ignore property
*/
public class EditIgnoreModule implements Module {
@NotNull
private final SubversionSupport subversionSupport;
@Inject
public EditIgnoreModule( @NotNull SubversionSupport subversionSupport ) {
this.subversionSupport = subversionSupport;
}
@NotNull
public String getDescription() {
return SubversionMessageHandler.get( "module.edit.ignore" );
}
public void process( @NotNull CmdLine cmdLine ) throws Exception {
cmdLine.out( SubversionMessageHandler.get( "module.edit.ignore" ) );
Process process = Runtime.getRuntime().exec( subversionSupport.getSubversionBin() + " propedit svn:ignore ." );
cmdLine.out( process );
process.waitFor();
cmdLine.success( SubversionMessageHandler.get( "module.processed.successfully" ) );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy