directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r681786 - /directory/studio/trunk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioEclipseMojo.java
Date Fri, 01 Aug 2008 19:16:55 GMT
Author: seelmann
Date: Fri Aug  1 12:16:54 2008
New Revision: 681786

URL: http://svn.apache.org/viewvc?rev=681786&view=rev
Log:
Fixed path separator of MANIFEST and .classpath on windws as they are always '/'

Modified:
    directory/studio/trunk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioEclipseMojo.java

Modified: directory/studio/trunk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioEclipseMojo.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioEclipseMojo.java?rev=681786&r1=681785&r2=681786&view=diff
==============================================================================
--- directory/studio/trunk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioEclipseMojo.java
(original)
+++ directory/studio/trunk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioEclipseMojo.java
Fri Aug  1 12:16:54 2008
@@ -167,7 +167,7 @@
             if ( !artifact.getScope().equalsIgnoreCase( "test" ) )
             {
                 bundleClasspath.append( "," ).append( NEWLINE ).append( " " ).append( libraryPath
).append(
-                    File.separator ).append( artifact.getFile().getName() );
+                    '/' ).append( artifact.getFile().getName() );
             }
         }
 
@@ -252,7 +252,7 @@
             {
                 entry = new Xpp3Dom( "classpathentry" );
                 entry.setAttribute( "kind", "lib" );
-                entry.setAttribute( "path", ( new StringBuilder() ).append( libraryPath ).append(
File.separator )
+                entry.setAttribute( "path", ( new StringBuilder() ).append( libraryPath ).append(
'/' )
                     .append( artifact.getFile().getName() ).toString() );
             }
             else
@@ -260,7 +260,7 @@
                 entry = new Xpp3Dom( "classpathentry" );
                 entry.setAttribute( "exported", "true" );
                 entry.setAttribute( "kind", "lib" );
-                entry.setAttribute( "path", ( new StringBuilder() ).append( libraryPath ).append(
File.separator )
+                entry.setAttribute( "path", ( new StringBuilder() ).append( libraryPath ).append(
'/' )
                     .append( artifact.getFile().getName() ).toString() );
             }
             dom.addChild( entry );



Mime
View raw message