You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2007/03/30 07:54:03 UTC

svn commit: r523950 - /webservices/axis2/branches/java/1_2/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/eclipse/CodeGenWizard.java

Author: sandakith
Date: Thu Mar 29 22:54:02 2007
New Revision: 523950

URL: http://svn.apache.org/viewvc?view=rev&rev=523950
Log:
fix for AXIS2-1862(last reported sub issue)
Now the tempory files will generate under workspace where eclipse will always have permission


Modified:
    webservices/axis2/branches/java/1_2/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/eclipse/CodeGenWizard.java

Modified: webservices/axis2/branches/java/1_2/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/eclipse/CodeGenWizard.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/eclipse/CodeGenWizard.java?view=diff&rev=523950&r1=523949&r2=523950
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/eclipse/CodeGenWizard.java (original)
+++ webservices/axis2/branches/java/1_2/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/eclipse/CodeGenWizard.java Thu Mar 29 22:54:02 2007
@@ -49,6 +49,8 @@
 import org.apache.axis2.wsdl.codegen.CodeGenerationEngine;
 import org.apache.ws.java2wsdl.Java2WSDLCodegenEngine;
 import org.apache.ws.java2wsdl.utils.Java2WSDLCommandLineOption;
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.resources.ResourcesPlugin;
 import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.NullProgressMonitor;
@@ -293,7 +295,8 @@
                  //This will Create a jar file from the codegen results and add to the output 
                  //locations lib directory
                  if (outputPage.getCreateJarCheckBoxSelection()){
-                	 String tempCodegenLocation =  System.getProperty("user.dir")+File.separator+"codegen";
+                	 IWorkspace workspace = ResourcesPlugin.getWorkspace();
+                	 String tempCodegenLocation =  workspace.getRoot().getLocation().toString()+File.separator+"codegen";
                 	 String tempProjectSrcLocation = tempCodegenLocation+File.separator+"codegen_temp_src_"+
                 	 								 System.currentTimeMillis();
                 	 String tempProjectClassLocation = tempCodegenLocation+File.separator+"codegen_temp_class_"+



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org