axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hemap...@apache.org
Subject cvs commit: ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/misc BuildFileGenerator.java
Date Wed, 07 Jul 2004 10:44:29 GMT
hemapani    2004/07/07 03:44:29

  Modified:    contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/misc
                        BuildFileGenerator.java
  Log:
  make sure the final implementation jar file created in the output directory
  
  Revision  Changes    Path
  1.12      +6 -7      ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/misc/BuildFileGenerator.java
  
  Index: BuildFileGenerator.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/src/org/apache/geronimo/ews/ws4j2ee/toWs/misc/BuildFileGenerator.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- BuildFileGenerator.java	7 Jul 2004 09:43:14 -0000	1.11
  +++ BuildFileGenerator.java	7 Jul 2004 10:44:29 -0000	1.12
  @@ -189,11 +189,11 @@
   				jarName = jarName.substring(index+1);
   			} 
   			
  -			
  -			File jarFile = new File(j2eewscontext.getMiscInfo().getOutPutPath()+"/"+ jarName + "-ewsimpl.jar");
  -			
  +			String finalJarFile = j2eewscontext.getMiscInfo().getOutPutPath() + "/"+ jarName + "-ewsimpl.jar";
  +			File jarFile = new File(finalJarFile);
  +			String tempFile = "${build}/lib/"+jarName + "-temp.jar";
               
  -			out.write("		<jar jarfile=\""+jarFile.getAbsolutePath()+"\" >\n");
  +			out.write("		<jar jarfile=\""+ tempFile + "\" basedir=\"${build.classes}\" >\n");
   			out.write("		<include name=\"**\" />\n");
   			out.write("		<manifest>\n");
   			out.write("			<section name=\"org/apache/ws4j2ee\">\n");
  @@ -204,14 +204,13 @@
   			out.write("		</jar>\n");
   			if(jarfile != null){
   				out.write("     <java classname=\"org.apache.geronimo.ews.ws4j2ee.utils.packager.Packager\"
fork=\"no\" >\n");
  -				out.write("     	<arg value=\""+jarName+".jar\"/>\n");
  +				out.write("     	<arg value=\""+jarFile.getAbsolutePath()+"\"/>\n");
   				out.write("     	<classpath refid=\"classpath\" />\n");
   				for(int i = 0;i<classpathelements.size();i++){
   					out.write("     	<arg value=\""
   						+ ((File)classpathelements.get(i)).getAbsolutePath() + "\"/>\n");				
   				}
  -				out.write("     	<arg value=\"${build}/lib/"
  -						+ jarName + "-impl.jar\"/>\n"); 
  +				out.write("     	<arg value=\""	+ tempFile + "\"/>\n"); 
   				out.write("     </java>\n");
   			}
   //			out.write("		<delete dir=\"${build}\"/>\n");
  
  
  

Mime
View raw message