You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/02/14 12:30:06 UTC

svn commit: r377700 - in /lenya/trunk/src: resources/dev/eclipse/make-classpath.xsl targets/ide-build.xml

Author: andreas
Date: Tue Feb 14 03:30:02 2006
New Revision: 377700

URL: http://svn.apache.org/viewcvs?rev=377700&view=rev
Log:
Use correct cocoon project name for eclipse classpath

Modified:
    lenya/trunk/src/resources/dev/eclipse/make-classpath.xsl
    lenya/trunk/src/targets/ide-build.xml

Modified: lenya/trunk/src/resources/dev/eclipse/make-classpath.xsl
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/resources/dev/eclipse/make-classpath.xsl?rev=377700&r1=377699&r2=377700&view=diff
==============================================================================
--- lenya/trunk/src/resources/dev/eclipse/make-classpath.xsl (original)
+++ lenya/trunk/src/resources/dev/eclipse/make-classpath.xsl Tue Feb 14 03:30:02 2006
@@ -25,6 +25,7 @@
 
   <xsl:output indent="yes" method="xml"/>
   <xsl:param name="exportlib"/>
+  <xsl:param name="cocoonProjectName"/>
   
   <xsl:strip-space elements="*"/>
 
@@ -61,7 +62,7 @@
       <classpathentry kind="output" path="{output}"/>
 
       <!-- 5. Dependance on Cocoon. There needs to be a cocoon-2.1 eclipse project -->
-	  <classpathentry kind="src" path="/cocoon-2.1"/>
+	  <classpathentry kind="src" path="/{$cocoonProjectName}"/>
 
     </classpath>
   </xsl:template>

Modified: lenya/trunk/src/targets/ide-build.xml
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/targets/ide-build.xml?rev=377700&r1=377699&r2=377700&view=diff
==============================================================================
--- lenya/trunk/src/targets/ide-build.xml (original)
+++ lenya/trunk/src/targets/ide-build.xml Tue Feb 14 03:30:02 2006
@@ -25,6 +25,12 @@
 
     <echo message="Building Eclipse Project Files"/>
 
+    <xmlproperty file="${cocoon.src.dir}/.project"/>
+    
+    <fail unless="projectDescription.name">
+      Please call "./build.sh eclipse-project" in the Cocoon source directory first.
+    </fail>
+    
     <!-- prepare the various paths that will form the project -->
     <path id="srcs">
       <!-- main source dir -->
@@ -105,13 +111,8 @@
           processor="trax"
           style="${src.resource.dir}/dev/eclipse/make-classpath.xsl">
        <param name="exportlib" expression="${ide.eclipse.export.libs}"/>
+       <param name="cocoonProjectName" expression="${projectDescription.name}"/>
     </xslt>
-
-    <xmlproperty file="${cocoon.src.dir}/.project"/>
-    
-    <fail unless="projectDescription.name">
-      Please call "./build.sh eclipse-project" in the Cocoon source directory first.
-    </fail>
 
     <!-- copy the project file (expand version) -->
     <copy file="${src.resource.dir}/dev/eclipse/project"



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