
eu.cedarsoft.devtools.modules.EditExternalsDefinition 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 an external definition
*/
public class EditExternalsDefinition implements Module {
@NotNull
private final SubversionSupport subversionSupport;
@Inject
public EditExternalsDefinition( @NotNull SubversionSupport subversionSupport ) {
this.subversionSupport = subversionSupport;
}
@NotNull
public String getDescription() {
return SubversionMessageHandler.get( "module.edit.external.definition" );
}
public void process( @NotNull CmdLine cmdLine ) throws Exception {
cmdLine.out( SubversionMessageHandler.get( "module.edit.external.definition" ) );
Process process = Runtime.getRuntime().exec( subversionSupport.getSubversionBin() + " propedit svn:externals ." );
cmdLine.out( process );
process.waitFor();
cmdLine.success( SubversionMessageHandler.get( "module.processed.successfully" ) );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy