tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r425179 - /incubator/tuscany/java/sca/pom.xml
Date Mon, 24 Jul 2006 20:40:20 GMT
Author: dkulp
Date: Mon Jul 24 13:40:19 2006
New Revision: 425179

URL: http://svn.apache.org/viewvc?rev=425179&view=rev
Log:
Fix for eclipse .classpath generation

* Add a -Peclipse profile that changes the "." resource dir to src/main/resources to prevent
having nested source directories in the eclipse projects


Modified:
    incubator/tuscany/java/sca/pom.xml

Modified: incubator/tuscany/java/sca/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/pom.xml?rev=425179&r1=425178&r2=425179&view=diff
==============================================================================
--- incubator/tuscany/java/sca/pom.xml (original)
+++ incubator/tuscany/java/sca/pom.xml Mon Jul 24 13:40:19 2006
@@ -23,6 +23,7 @@
     <version>1.0-SNAPSHOT</version>
     <properties>
         <sca.version>1.0-SNAPSHOT</sca.version>
+        <notice.dir>.</notice.dir>
     </properties>
 
     <modules>
@@ -242,7 +243,7 @@
                 <directory>src/main/resources</directory>
             </resource>
             <resource>
-                <directory>.</directory>
+                <directory>${notice.dir}</directory>
                 <targetPath>META-INF</targetPath>
                 <filtering>true</filtering>
                 <includes>
@@ -293,6 +294,17 @@
     </reporting>
 
     <profiles>
+        <profile>
+            <!-- this is kind of a hack for eclipse.   Eclipse doesn't like "." as a resource
directory as then you have
+            source directories inside a source directory which causes all kinds of errors.
 We'll just point 
+            the resources directory back to the resources directory.   The NOTICE and LICSENSE
files 
+            won't be included in the eclipse builds, but it at least works.
+            -->
+            <id>eclipse</id>
+            <properties>
+                <notice.dir>src/main/resources</notice.dir>
+            </properties>
+        </profile>
         <profile>
             <id>sourcecheck</id>
             <build>



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message