cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r687387 - in /cxf/trunk: common/xsd/src/main/java/org/apache/cxf/maven_plugin/ maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/ maven-plugins/wsdl-validator-plugin/src/main/java/org/apache/cxf/maven_plugin/
Date Wed, 20 Aug 2008 16:57:44 GMT
Author: dkulp
Date: Wed Aug 20 09:57:17 2008
New Revision: 687387

URL: http://svn.apache.org/viewvc?rev=687387&view=rev
Log:
[CXF-1753] Remove the attempts at checking the timestamp on the code. It isn't needed for
"release" builds, and doesn't really work as it only checks one or two classes, not all the
classes that go into the code generators.

Removed:
    cxf/trunk/common/xsd/src/main/java/org/apache/cxf/maven_plugin/CodegenUtils.java
    cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/CodegenUtils.java
    cxf/trunk/maven-plugins/wsdl-validator-plugin/src/main/java/org/apache/cxf/maven_plugin/CodegenUtils.java
Modified:
    cxf/trunk/common/xsd/src/main/java/org/apache/cxf/maven_plugin/XSDToJavaMojo.java
    cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
    cxf/trunk/maven-plugins/wsdl-validator-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDLValidatorMojo.java

Modified: cxf/trunk/common/xsd/src/main/java/org/apache/cxf/maven_plugin/XSDToJavaMojo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/xsd/src/main/java/org/apache/cxf/maven_plugin/XSDToJavaMojo.java?rev=687387&r1=687386&r2=687387&view=diff
==============================================================================
--- cxf/trunk/common/xsd/src/main/java/org/apache/cxf/maven_plugin/XSDToJavaMojo.java (original)
+++ cxf/trunk/common/xsd/src/main/java/org/apache/cxf/maven_plugin/XSDToJavaMojo.java Wed
Aug 20 09:57:17 2008
@@ -74,7 +74,6 @@
         outputDirFile.mkdirs();
         markerDirectory.mkdirs();
 
-        long timestamp = CodegenUtils.getCodegenTimestamp();
         boolean result = true;
         
         if (xsdOptions == null) {
@@ -117,7 +116,7 @@
                 }
             }
             
-            boolean doWork = timestamp > doneFile.lastModified();
+            boolean doWork = false;
             if (!doneFile.exists()) {
                 doWork = true;
             } else if (srctimestamp > doneFile.lastModified()) {

Modified: cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java?rev=687387&r1=687386&r2=687387&view=diff
==============================================================================
--- cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
(original)
+++ cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
Wed Aug 20 09:57:17 2008
@@ -218,14 +218,13 @@
         Map<Object, Object> origProps = new HashMap<Object, Object>(System.getProperties());
         
         String cp = System.getProperty("java.class.path");
-        long timestamp = CodegenUtils.getCodegenTimestamp();
         boolean result = true;
         
         try {
             Thread.currentThread().setContextClassLoader(loader);
             System.setProperty("java.class.path", newCp);
             for (WsdlOption o : wsdlOptions) {
-                processWsdl(o, timestamp);
+                processWsdl(o);
 
                 File dirs[] = o.getDeleteDirs();
                 if (dirs != null) {
@@ -261,8 +260,7 @@
         System.gc();
     }
 
-    private void processWsdl(WsdlOption wsdlOption,
-                             long cgtimestamp) throws MojoExecutionException {
+    private void processWsdl(WsdlOption wsdlOption) throws MojoExecutionException {
         
         File outputDirFile = wsdlOption.getOutputDir();
         outputDirFile.mkdirs();
@@ -301,7 +299,7 @@
             }
         }
         
-        boolean doWork = cgtimestamp > doneFile.lastModified();
+        boolean doWork = false;
         if (!doneFile.exists()) {
             doWork = true;
         } else if (timestamp > doneFile.lastModified()) {

Modified: cxf/trunk/maven-plugins/wsdl-validator-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDLValidatorMojo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/maven-plugins/wsdl-validator-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDLValidatorMojo.java?rev=687387&r1=687386&r2=687387&view=diff
==============================================================================
--- cxf/trunk/maven-plugins/wsdl-validator-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDLValidatorMojo.java
(original)
+++ cxf/trunk/maven-plugins/wsdl-validator-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDLValidatorMojo.java
Wed Aug 20 09:57:17 2008
@@ -115,12 +115,12 @@
         }
     }
     
-    private void processWsdl(File file, long cgtimestamp) throws MojoExecutionException {
+    private void processWsdl(File file) throws MojoExecutionException {
         
         // If URL to WSDL, replace ? and & since they're invalid chars for file names
         File doneFile =
             new File(markerDirectory, "." + file.getName().replace('?', '_').replace('&',
'_') + ".DONE");
-        boolean doWork = cgtimestamp > doneFile.lastModified();
+        boolean doWork = false;
         if (!doneFile.exists()) {
             doWork = true;
         } else if (file.lastModified() > doneFile.lastModified()) {
@@ -183,9 +183,8 @@
             wsdls.addAll(getWsdlFiles(testWsdlRoot));
         }
 
-        long timestamp = CodegenUtils.getCodegenTimestamp();
         for (File wsdl : wsdls) {
-            processWsdl(wsdl, timestamp);
+            processWsdl(wsdl);
         }
 
 



Mime
View raw message