forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From che...@apache.org
Subject svn commit: r170585 - /forrest/trunk/main/forrest.build.xml
Date Tue, 17 May 2005 12:16:41 GMT
Author: cheche
Date: Tue May 17 05:16:40 2005
New Revision: 170585

URL: http://svn.apache.org/viewcvs?rev=170585&view=rev
Log:
patch to add $LANGUAGE to build directory. 

Modified:
    forrest/trunk/main/forrest.build.xml

Modified: forrest/trunk/main/forrest.build.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/forrest.build.xml?rev=170585&r1=170584&r2=170585&view=diff
==============================================================================
--- forrest/trunk/main/forrest.build.xml (original)
+++ forrest/trunk/main/forrest.build.xml Tue May 17 05:16:40 2005
@@ -100,7 +100,16 @@
     <property name="build.plugins-dir"     value="build/plugins"/>
     <property name="forrest.skins-dir"     location="${forrest.core.webapp}/skins"/>
     <property name="forrest.plugins-dir"   location="${forrest.home}/${build.plugins-dir}"/>
-    <property name="project.site-dir"      location="${project.build-dir}/site"    />
+    <!-- If the user wants to build i18n in diferent locations this is one way to implemented
it--> 
+    <if>
+        <equals arg1="${project.i18n}" arg2="true"/>
+        <then>
+          <property name="project.site-dir"      location="${project.build-dir}/site/${env.LANG}"
   />
+        </then>
+        <else>
+          <property name="project.site-dir"      location="${project.build-dir}/site"
   />
+        </else>
+    </if>
     <property name="project.war"           location="${project.build-dir}/${project.name}.war"
/>
     <property name="project.webapp"        location="${project.build-dir}/webapp" />
 



Mime
View raw message