dion 2003/08/19 23:10:28 Modified: src/java/org/apache/maven/cli App.java Log: Fix for MAVEN-689 Revision Changes Path 1.33 +6 -3 maven/src/java/org/apache/maven/cli/App.java Index: App.java =================================================================== RCS file: /home/cvs/maven/src/java/org/apache/maven/cli/App.java,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- App.java 19 Aug 2003 04:22:38 -0000 1.32 +++ App.java 20 Aug 2003 06:10:28 -0000 1.33 @@ -290,8 +290,9 @@ * Get the project descriptor file. * * @return The project descriptor file. + * @throws IOException when the project.xml parent can't be resolved */ - private File getDescriptorFile() + private File getDescriptorFile() throws IOException { File descriptorFile = null; String descriptorName = null; @@ -316,6 +317,7 @@ { descriptorFile = new File( descriptorName ); } + System.setProperty("user.dir", descriptorFile.getParentFile().getCanonicalPath()); } else { @@ -384,8 +386,9 @@ /** * Initialize the mavenSession bean. + * @throws IOException when the descriptor file parent can't be resolved */ - private void initializeMavenSession() + private void initializeMavenSession() throws IOException { // Even though the rootProject contains the rootContext we set both in // the even that there is no rootProject and the user is requesting goals
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]