stefano 2003/03/10 08:38:58
Modified: src/resources/dev/eclipse classpath-tmpl.xml
make-classpath.xsl
Log:
fixed the eclipse-project build target so that now eclipse runs smoothly
Revision Changes Path
1.2 +2 -1 cocoon-2.1/src/resources/dev/eclipse/classpath-tmpl.xml
Index: classpath-tmpl.xml
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/resources/dev/eclipse/classpath-tmpl.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- classpath-tmpl.xml 9 Mar 2003 00:09:52 -0000 1.1
+++ classpath-tmpl.xml 10 Mar 2003 16:38:58 -0000 1.2
@@ -1,6 +1,7 @@
<?xml version="1.0"?>
<data>
<src-dirs><item>@SRC_DIRS@</item></src-dirs>
- <libs><item>@LIBS@</item></libs>
<mock-dirs><item>@MOCKS_DIRS@</item></mock-dirs>
+ <libs><item>@LIBS@</item></libs>
+ <output>@OUTPUT_DIR@</output>
</data>
1.2 +13 -12 cocoon-2.1/src/resources/dev/eclipse/make-classpath.xsl
Index: make-classpath.xsl
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/resources/dev/eclipse/make-classpath.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- make-classpath.xsl 9 Mar 2003 00:09:52 -0000 1.1
+++ make-classpath.xsl 10 Mar 2003 16:38:58 -0000 1.2
@@ -17,27 +17,28 @@
<xsl:template match="/data">
<classpath>
- <!-- 1. source dirs -->
+
+ <!-- 1. mock classes -->
+ <xsl:for-each select="mock-dirs/item">
+ <classpathentry kind="src" path="{.}"/>
+ </xsl:for-each>
+
+ <!-- 2. source dirs -->
<xsl:for-each select="src-dirs/item">
<classpathentry kind="src" path="{.}"/>
</xsl:for-each>
-
- <!-- 2. libraries -->
+
+ <!-- 3. libraries -->
<xsl:for-each select="libs/item">
<classpathentry kind="lib" path="{.}"/>
- </xsl:for-each>
-
- <!-- 3. mock classes -->
- <xsl:for-each select="mock-dirs/item">
- <classpathentry kind="src" path="{.}"/>
- </xsl:for-each>
-
+ </xsl:for-each>
+
<!-- 4. JRE runtime -->
<classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT"
sourcepath="JRE_SRC"/>
<!-- output directory. Build in a separate dir since Eclipse is confused by
classes
compiled externally by Sun's Javac -->
- <classpathentry kind="output" path="build/eclipse/classes"/>
+ <classpathentry kind="output" path="{output}"/>
</classpath>
</xsl:template>