[jboss-svn-commits] JBL Code SVN: r11861 - labs/jbosslabs/trunk/portal-extensions/forge-kosmos.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue May 15 13:02:41 EDT 2007
Author: wrzep
Date: 2007-05-15 13:02:41 -0400 (Tue, 15 May 2007)
New Revision: 11861
Modified:
labs/jbosslabs/trunk/portal-extensions/forge-kosmos/maven.xml
Log:
JBLAB-868
Modified: labs/jbosslabs/trunk/portal-extensions/forge-kosmos/maven.xml
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-kosmos/maven.xml 2007-05-15 16:11:59 UTC (rev 11860)
+++ labs/jbosslabs/trunk/portal-extensions/forge-kosmos/maven.xml 2007-05-15 17:02:41 UTC (rev 11861)
@@ -5,65 +5,78 @@
-->
<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util">
<goal name="all">
-
+ <!--
+ <attainGoal name="clean"/>
+ <attainGoal name="build"/>
+ <attainGoal name="deploy"/>
+ -->
</goal>
<goal name="clean">
- <!--<attainGoal name="prj-clean" />-->
+ <attainGoal name="prj-clean" />
+ <ant:delete dir="${local.deploy.dir}/kosmos-server.war" />
+ <ant:delete dir="${local.deploy.dir}/kosmos-portlet.war" />
</goal>
<goal name="build">
- <!--<attainGoal name="java:compile" />-->
+ <!-- <attainGoal name="java:compile" /> -->
</goal>
<goal name="deploy">
+ <!--
+ <attainGoal name="deploy-server"/>
+ <attainGoal name="deploy-portlet"/>
+ -->
+ </goal>
- </goal>
+ <goal name="deploy-server">
+ <ant:unzip src="to-copy/kosmos-server.war" dest="target/kosmos-server.war" overwrite="true" />
+
+ <!-- Copying configuration files -->
+ <ant:copy todir="target/kosmos-server.war/WEB-INF" overwrite="true">
+ <ant:fileset dir="conf/server">
+ <ant:filename name="**/*" />
+ </ant:fileset>
+ </ant:copy>
+
+ <!-- Copying cache class -->
+ <ant:copy todir="target/kosmos-server.war/WEB-INF/classes" overwrite="true">
+ <ant:fileset dir="target/classes">
+ <ant:filename name="**/*" />
+ </ant:fileset>
+ </ant:copy>
- <goal name="deploy-old">
- <!-- Unzipping the jar-s -->
- <ant:unzip src="to-copy/kosmos-server.war" dest="target/kosmos-server.war" overwrite="true" />
- <ant:unzip src="to-copy/kosmos-portlet.war" dest="target/kosmos-portlet.war" overwrite="true" />
+ <!-- Delete log4j jars to avoid classloader issues -->
+ <ant:delete file="target/kosmos-server.war/WEB-INF/lib/log4j-1.2.8.jar" />
+
+ <!-- Deploying new packages -->
+ <ant:copy todir="${local.deploy.dir}" overwrite="true">
+ <ant:fileset dir="target">
+ <ant:filename name="kosmos-server*/**" />
+ </ant:fileset>
+ </ant:copy>
+ </goal>
+
+ <goal name="deploy-portlet">
+ <ant:unzip src="to-copy/kosmos-portlet.war" dest="target/kosmos-portlet.war" overwrite="true" />
- <!-- Copying configuration files -->
- <ant:copy todir="target/kosmos-server.war/WEB-INF" overwrite="true">
- <ant:fileset dir="conf/server">
- <ant:filename name="**/*" />
- </ant:fileset>
- </ant:copy>
- <ant:copy todir="target/kosmos-portlet.war/WEB-INF" overwrite="true">
- <ant:fileset dir="conf/portlet">
- <ant:filename name="**/*" />
- </ant:fileset>
- </ant:copy>
-
- <!-- Copying cache class -->
- <ant:copy todir="target/kosmos-server.war/WEB-INF/classes" overwrite="true">
- <ant:fileset dir="target/classes">
- <ant:filename name="**/*" />
- </ant:fileset>
- </ant:copy>
+ <ant:copy todir="target/kosmos-portlet.war/WEB-INF" overwrite="true">
+ <ant:fileset dir="conf/portlet">
+ <ant:filename name="**/*" />
+ </ant:fileset>
+ </ant:copy>
+
+ <ant:delete file="target/kosmos-portlet.war/WEB-INF/lib/log4j-1.2.8.jar" />
+
+ <ant:copy todir="${local.deploy.dir}" overwrite="true">
+ <ant:fileset dir="target">
+ <ant:filename name="kosmos-portlet*/**" />
+ </ant:fileset>
+ </ant:copy>
+ </goal>
- <!-- Deleting old deployment -->
- <ant:delete dir="${local.deploy.dir}/kosmos-server.war" />
- <ant:delete dir="${local.deploy.dir}/kosmos-portlet.war" />
-
- <!-- Deploying new packages -->
-
- <ant:copy todir="../${forge.sar.dir}/target" overwrite="true">
- <ant:fileset dir="target">
- <ant:filename name="kosmos*/**" />
- </ant:fileset>
- </ant:copy>
-
- <!-- Deleting log4j jars to avoid classloader issues -->
-
- <ant:delete file="../${forge.sar.dir}/target/kosmos-server.war/WEB-INF/lib/log4j-1.2.8.jar" />
- <ant:delete file="../${forge.sar.dir}/target/kosmos-portlet.war/WEB-INF/lib/log4j-1.2.8.jar" />
-
- <ant:copy todir="${local.deploy.dir}"
+<!-- <ant:copy todir="${local.deploy.dir}"
file="${maven.repo.local}/com.lowagie/jars/itext-1.4.jar"
- overwrite="true" />
-
- </goal>
+ overwrite="true" /> -->
+
</project>
More information about the jboss-svn-commits
mailing list