portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morci...@apache.org
Subject cvs commit: jakarta-jetspeed maven.xml
Date Mon, 08 Sep 2003 19:20:42 GMT
morciuch    2003/09/08 12:20:42

  Modified:    .        maven.xml
  Log:
  Added 'hotdeploy' goal
  
  Revision  Changes    Path
  1.5       +25 -2     jakarta-jetspeed/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/maven.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- maven.xml	17 Apr 2003 15:18:07 -0000	1.4
  +++ maven.xml	8 Sep 2003 19:20:42 -0000	1.5
  @@ -42,11 +42,34 @@
   	<!--C O P Y  L O C A L I Z A T I O N   R E S O U R C E S                          -->
   	<!-- ================================================================== -->
   	<postGoal name="java:jar-resources">
  -		<property name="base.package" value="org/apache/jetspeed/modules/localization"/>

  +		<property name="base.package" value="org/apache/jetspeed/modules/localization"/>
   		<copy todir="${maven.build.dest}/${base.package}" overwrite="true">
   			<fileset dir="${pom.build.sourceDirectory}/${base.package}">
   				<include name="**.properties*"/>
   			</fileset>
   		</copy>
  -	</postGoal>	
  +	</postGoal>
  +	<!-- ================================================================== -->
  +	<!--H O T D E P L O Y   W E B A P P                        -->
  +	<!-- ================================================================== -->
  +	<goal name="hotdeploy" prereqs="java:compile" description="Hot deploys webapp classes
on a local server">
  +		<!--echo>[DEBUG] maven.src.dir = ${maven.src.dir}</echo>
  +		<echo>[DEBUG] maven.war.src = ${maven.war.src}</echo>
  +		<echo>[DEBUG] maven.build.dir = ${maven.build.dir}</echo>
  +		<echo>[DEBUG] maven.war.build.dir = ${maven.war.build.dir}</echo-->
  +		<copy todir="${maven.war.appserver.home}/webapps/${pom.name}/WEB-INF/classes">
  +			<fileset dir="${maven.build.dir}/classes">
  +				<!-- Do not include test files in the runtime jar -->
  +				<exclude name="**/Test*.*"/>
  +				<exclude name="**/test*.*"/>
  +				<!-- Also exclude the test cactus.properties file -->
  +				<exclude name="cactus.properties"/>
  +			</fileset>
  +		</copy>
  +		<copy todir="${maven.war.appserver.home}/webapps/${pom.name}">
  +			<fileset dir="./webapp">
  +				<exclude name="**/*.properties.merge"/>
  +			</fileset>
  +		</copy>
  +	</goal>	
   </project>
  
  
  

Mime
View raw message