flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject svn commit: r1413847 - /incubator/flex/utilities/trunk/mavenizer/src/main/java/flex/FlexCompilerGenerator.java
Date Mon, 26 Nov 2012 21:15:24 GMT
Author: cdutz
Date: Mon Nov 26 21:15:23 2012
New Revision: 1413847

URL: http://svn.apache.org/viewvc?rev=1413847&view=rev
Log:
Made the generator more platform independent. The old version created the compiler artifacts
wrong on non-windows machines (The paths were crated using "\" ... this was now changed to
"/", which should work on all platforms)

Modified:
    incubator/flex/utilities/trunk/mavenizer/src/main/java/flex/FlexCompilerGenerator.java

Modified: incubator/flex/utilities/trunk/mavenizer/src/main/java/flex/FlexCompilerGenerator.java
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/mavenizer/src/main/java/flex/FlexCompilerGenerator.java?rev=1413847&r1=1413846&r2=1413847&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/mavenizer/src/main/java/flex/FlexCompilerGenerator.java
(original)
+++ incubator/flex/utilities/trunk/mavenizer/src/main/java/flex/FlexCompilerGenerator.java
Mon Nov 26 21:15:23 2012
@@ -125,8 +125,8 @@ public class FlexCompilerGenerator exten
 
                     // Create the name of the directory that will contain the artifact.
                     final File targetJarDirectory = new File(sdkTargetDirectory,
-                            ((isApache) ? "org\\apache\\flex\\compiler\\" : "com\\adobe\\flex\\compiler\\")
+
-                            artifactMetadata.getArtifactId() + "\\" + artifactMetadata.getVersion());
+                            ((isApache) ? "org/apache/flex/compiler/" : "com/adobe/flex/compiler/")
+
+                            artifactMetadata.getArtifactId() + "/" + artifactMetadata.getVersion());
                     // Create the directory.
                     if(targetJarDirectory.mkdirs()) {
                         // Create the filename of the artifact.
@@ -177,7 +177,7 @@ public class FlexCompilerGenerator exten
 
         // Write the compiler-pom document to file.
         final File pomFile = new File(sdkTargetDirectory,
-                ((isApache) ? "org\\apache\\flex\\compiler\\" : "com\\adobe\\flex\\compiler\\")
+ sdkVersion + "\\compiler-" + sdkVersion + ".pom");
+                ((isApache) ? "org/apache/flex/compiler/" : "com/adobe/flex/compiler/") +
sdkVersion + "/compiler-" + sdkVersion + ".pom");
         writeDocument(pom, pomFile);
     }
 



Mime
View raw message