diff options
author | unknown <duns@.(none)> | 2009-10-19 14:31:03 +0200 |
---|---|---|
committer | unknown <duns@.(none)> | 2009-10-19 14:31:03 +0200 |
commit | 3d9e3dd50a06cade916b8310ba496dbf93b2849b (patch) | |
tree | ff75755399d2aae6109438c68a05c3ca69628db5 /src/main/java/org | |
parent | 33d0dd6643183d1f49e7e7a893305f0e136f249e (diff) | |
download | maven-nar-plugin-3d9e3dd50a06cade916b8310ba496dbf93b2849b.tar.gz maven-nar-plugin-3d9e3dd50a06cade916b8310ba496dbf93b2849b.tar.bz2 maven-nar-plugin-3d9e3dd50a06cade916b8310ba496dbf93b2849b.tar.xz maven-nar-plugin-3d9e3dd50a06cade916b8310ba496dbf93b2849b.zip |
Removed our own Commandline
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/apache/maven/plugin/nar/NarUtil.java | 48 |
1 files changed, 1 insertions, 47 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/NarUtil.java b/src/main/java/org/apache/maven/plugin/nar/NarUtil.java index ea0d8ce..63b8818 100644 --- a/src/main/java/org/apache/maven/plugin/nar/NarUtil.java +++ b/src/main/java/org/apache/maven/plugin/nar/NarUtil.java @@ -412,7 +412,7 @@ public class NarUtil public static int runCommand( String cmd, String[] args, File workingDirectory, String[] env, Log log ) throws MojoExecutionException, MojoFailureException { - NarCommandLine cmdLine = new NarCommandLine(); + Commandline cmdLine = new Commandline(); try { @@ -460,52 +460,6 @@ public class NarUtil } } - private static class NarCommandLine - extends Commandline - { - // Override this method to prevent addition (and obstruction) of system env variables - // but (for now) add them when no envVars are given. - - // NOTE and FIXME: we need to properly put system variables in there - // mixed (overridden) by our own. -/* - public String[] getEnvironmentVariables() - throws CommandLineException - { - if ( envVars.size() == 0 ) - { - try - { - Vector systemEnvVars = getSystemEnvironment(); - return (String[]) systemEnvVars.toArray( new String[systemEnvVars.size()] ); - } - catch ( IOException e ) - { - throw new CommandLineException( "Error setting up environmental variables", e ); - } - } - else - { - return (String[]) envVars.toArray( new String[envVars.size()] ); - } - } - - private Vector getSystemEnvironment() - throws IOException - { - Properties envVars = CommandLineUtils.getSystemEnvVars(); - Vector systemEnvVars = new Vector( envVars.size() ); - - for ( Iterator i = envVars.keySet().iterator(); i.hasNext(); ) - { - String key = (String) i.next(); - systemEnvVars.add( key + "=" + envVars.getProperty( key ) ); - } - - return systemEnvVars; - } -*/ - } static class StreamGobbler extends Thread |