axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r360244 - in /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl: codegen/writer/ template/general/
Date Sat, 31 Dec 2005 05:17:49 GMT
Author: dims
Date: Fri Dec 30 21:17:45 2005
New Revision: 360244

URL: http://svn.apache.org/viewcvs?rev=360244&view=rev
Log:
- simple "build.xml" is enough.
- by default, try to jar all the generated code
- switch on debug flag in javac


Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/AntBuildWriter.java
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/adbAntBuildTemplate.xsl
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/defaultAntBuildTemplate.xsl
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/xmlbeansAntBuildTemplate.xsl

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/AntBuildWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/AntBuildWriter.java?rev=360244&r1=360243&r2=360244&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/AntBuildWriter.java
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/AntBuildWriter.java
Fri Dec 30 21:17:45 2005
@@ -1,8 +1,11 @@
 package org.apache.axis2.wsdl.codegen.writer;
 
 import org.apache.axis2.util.FileWriter;
+import org.apache.axis2.util.XSLTTemplateProcessor;
 import org.apache.axis2.wsdl.util.ConfigPropertyFileLoader;
+import org.w3c.dom.Document;
 
+import javax.xml.transform.URIResolver;
 import java.io.File;
 import java.io.FileOutputStream;
 import java.util.Iterator;
@@ -43,7 +46,7 @@
     public void createOutFile(String packageName, String fileName) throws Exception {
         File outputFile = FileWriter.createClassFile(outputFileLocation,
                 "",
-                packageName.replaceAll("\\.", "_") + "build",
+                "build",
                 ".xml");
         //set the existing flag
         fileExists = outputFile.exists();
@@ -78,6 +81,5 @@
         }
 
         return templateName;
-
     }
 }

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/adbAntBuildTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/adbAntBuildTemplate.xsl?rev=360244&r1=360243&r2=360244&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/adbAntBuildTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/adbAntBuildTemplate.xsl
Fri Dec 30 21:17:45 2005
@@ -3,7 +3,7 @@
     <xsl:template match="/ant">
         <xsl:variable name="package"><xsl:value-of select="@package"/></xsl:variable>
 
-        <project basedir="." default="move.files">
+        <project basedir="." default="jar.all">
             <xsl:comment>Auto generated ant build file</xsl:comment>
             <property name="src">
                 <xsl:attribute name="value">${basedir}\src</xsl:attribute>
@@ -99,7 +99,7 @@
 
             <target name="compile.all" depends="pre.compile.test">
                 <xsl:attribute name="if">jars.ok</xsl:attribute>
-                <javac>
+                <javac debug="on">
                     <xsl:attribute name="destdir">${classes}</xsl:attribute>
                     <xsl:attribute name="srcdir">${src}</xsl:attribute>
                     <classpath>

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/defaultAntBuildTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/defaultAntBuildTemplate.xsl?rev=360244&r1=360243&r2=360244&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/defaultAntBuildTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/defaultAntBuildTemplate.xsl
Fri Dec 30 21:17:45 2005
@@ -3,7 +3,7 @@
     <xsl:template match="/ant">
         <xsl:variable name="package"><xsl:value-of select="@package"/></xsl:variable>
 
-        <project basedir="." default="move.files">
+        <project basedir="." default="jar.all">
             <xsl:comment>Auto generated ant build file</xsl:comment>
             <property name="src">
                 <xsl:attribute name="value">${basedir}\src</xsl:attribute>
@@ -92,7 +92,7 @@
 
             <target name="compile.all" depends="pre.compile.test">
                 <xsl:attribute name="if">jars.ok</xsl:attribute>
-                <javac>
+                <javac debug="on">
                     <xsl:attribute name="destdir">${classes}</xsl:attribute>
                     <xsl:attribute name="srcdir">${src}</xsl:attribute>
                     <classpath>

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/xmlbeansAntBuildTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/xmlbeansAntBuildTemplate.xsl?rev=360244&r1=360243&r2=360244&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/xmlbeansAntBuildTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/xmlbeansAntBuildTemplate.xsl
Fri Dec 30 21:17:45 2005
@@ -3,7 +3,7 @@
     <xsl:template match="/ant">
         <xsl:variable name="package"><xsl:value-of select="@package"/></xsl:variable>
 
-        <project basedir="." default="jar.xbeans">
+        <project basedir="." default="jar.all">
             <xsl:comment>Auto generated ant build file</xsl:comment>
             <property name="src">
                 <xsl:attribute name="value">${basedir}\src</xsl:attribute>
@@ -116,7 +116,7 @@
 
             <target name="compile.all" depends="pre.compile.test">
                 <xsl:attribute name="if">jars.ok</xsl:attribute>
-                <javac>
+                <javac debug="on">
                     <xsl:attribute name="destdir">${classes}</xsl:attribute>
                     <xsl:attribute name="srcdir">${src}</xsl:attribute>
                     <classpath>



Mime
View raw message