portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/cornerstone project.properties readme.txt maven.xml
Date Tue, 02 Dec 2003 17:39:12 GMT
weaver      2003/12/02 09:39:12

  Modified:    cornerstone maven.xml
  Added:       cornerstone project.properties readme.txt
  Log:
  cornerstone update
  
  Revision  Changes    Path
  1.2       +140 -1    jakarta-jetspeed-2/cornerstone/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/cornerstone/maven.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- maven.xml	23 Oct 2003 21:00:53 -0000	1.1
  +++ maven.xml	2 Dec 2003 17:39:12 -0000	1.2
  @@ -1,4 +1,4 @@
  -<project default="java:jar"
  +<project default="full-build"
            xmlns:j="jelly:core" 
            xmlns:define="jelly:define"
            xmlns:reactor="reactor">
  @@ -10,5 +10,144 @@
         </fileset>
   	</move>	
   </goal>
  +
  +
  +<preGoal name="java:compile">
  +	<attainGoal name="generateActionSourceJava" />
  +	<attainGoal name="generateActionSourceResource" />
  +</preGoal>
  +
  +<goal name="build.runtime" >
  +	<copy todir="${CORNERSTONE_RUNTIME_REGISTRY_DIR}">
  +		<fileset dir="${registryDir}"/>
  +	</copy>
  +	<copy file="${configDir}/bootstrap.properties" todir="${CORNERSTONE_RUNTIME_HOME}"/>
  +</goal>
  +
  +<goal name="full-build">
  +	<attainGoal name="build.runtime" />
  +	<attainGoal name="jar:install" />
  +</goal>
  +
  +
  +<target name="generateActionSourceJava">
  +		<!-- copy files -->
  +		<copy todir="src/java/org/apache/cornerstone/framework/api/action">
  +			<fileset dir="src/java/org/apache/cornerstone/framework/api/service"/>
  +		</copy>
  +		<copy todir="src/java/org/apache/cornerstone/framework/action">
  +			<fileset dir="src/java/org/apache/cornerstone/framework/service"/>
  +		</copy>
  +		<!-- rename files -->
  +		<move todir="src/java/org/apache/cornerstone/framework/api/action">
  +			<fileset dir="src/java/org/apache/cornerstone/framework/api/action">
  +				<include name="*.java"/>
  +			</fileset>
  +			<mapper type="glob" from="IService*.java" to="IAction*.java"/>
  +		</move>
  +		<move todir="src/java/org/apache/cornerstone/framework/api/action">
  +			<fileset dir="src/java/org/apache/cornerstone/framework/api/action">
  +				<include name="*.java"/>
  +			</fileset>
  +			<mapper type="glob" from="*ServiceException.java" to="*ActionException.java"/>
  +		</move>
  +		<move todir="src/java/org/apache/cornerstone/framework/api/action/controller">
  +			<fileset dir="src/java/org/apache/cornerstone/framework/api/action/controller">
  +				<include name="*.java"/>
  +			</fileset>
  +			<mapper type="glob" from="IService*.java" to="IAction*.java"/>
  +		</move>
  +		<move todir="src/java/org/apache/cornerstone/framework/api/action/metric">
  +			<fileset dir="src/java/org/apache/cornerstone/framework/api/action/metric">
  +				<include name="*.java"/>
  +			</fileset>
  +			<mapper type="glob" from="IService*.java" to="IAction*.java"/>
  +		</move>
  +		<move todir="src/java/org/apache/cornerstone/framework/action">
  +			<fileset dir="src/java/org/apache/cornerstone/framework/action">
  +				<include name="*.java"/>
  +			</fileset>
  +			<mapper type="glob" from="Service*.java" to="Action*.java"/>
  +		</move>
  +		<move todir="src/java/org/apache/cornerstone/framework/action">
  +			<fileset dir="src/java/org/apache/cornerstone/framework/action">
  +				<include name="*.java"/>
  +			</fileset>
  +			<mapper type="glob" from="BaseService*.java" to="BaseAction*.java"/>
  +		</move>
  +		<move todir="src/java/org/apache/cornerstone/framework/action">
  +			<fileset dir="src/java/org/apache/cornerstone/framework/action">
  +				<include name="*.java"/>
  +			</fileset>
  +			<mapper type="glob" from="*Service.java" to="*Action.java"/>
  +		</move>
  +		<move todir="src/java/org/apache/cornerstone/framework/action/controller">
  +			<fileset dir="src/java/org/apache/cornerstone/framework/action/controller">
  +				<include name="*.java"/>
  +			</fileset>
  +			<mapper type="glob" from="*ServiceController.java" to="*ActionController.java"/>
  +		</move>
  +		<move todir="src/java/org/apache/cornerstone/framework/action/metric">
  +			<fileset dir="src/java/org/apache/cornerstone/framework/action/metric">
  +				<include name="*.java"/>
  +			</fileset>
  +			<mapper type="glob" from="Service*.java" to="Action*.java"/>
  +		</move>
  +		<move todir="src/java/org/apache/cornerstone/framework/action/metric">
  +			<fileset dir="src/java/org/apache/cornerstone/framework/action/metric">
  +				<include name="*.java"/>
  +			</fileset>
  +			<mapper type="glob" from="BaseService*.java" to="BaseAction*.java"/>
  +		</move>
  +		<!-- replace contents -->
  +		<replace dir="src/java/org/apache/cornerstone/framework/api/action" token="Service"
value="Action"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/api/action" token="service"
value="action"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/api/action" token="SERVICE"
value="ACTION"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/api/action/metric" token="Service"
value="Action"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/api/action/metric" token="service"
value="action"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/api/action/metric" token="SERVICE"
value="ACTION"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/api/action/controller" token="Service"
value="Action"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/api/action/controller" token="service"
value="action"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/api/action/controller" token="SERVICE"
value="ACTION"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/action" token="Service" value="Action"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/action" token="service" value="action"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/action" token="SERVICE" value="ACTION"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/action/metric" token="Service"
value="Action"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/action/metric" token="service"
value="action"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/action/metric" token="SERVICE"
value="ACTION"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/action/controller" token="Service"
value="Action"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/action/controller" token="service"
value="action"/>
  +		<replace dir="src/java/org/apache/cornerstone/framework/action/controller" token="SERVICE"
value="ACTION"/>
  +</target>
  +
  +<goal name="generateActionSourceResource">
  +		<!-- copy files -->
  +		<copy todir="src/resources/org/apache/cornerstone/framework/action">
  +			<fileset dir="src/resources/org/apache/cornerstone/framework/service"/>
  +		</copy>
  +		<!-- rename files -->
  +		<move todir="src/resources/org/apache/cornerstone/framework/action">
  +			<fileset dir="src/resources/org/apache/cornerstone/framework/action">
  +				<include name="*.properties"/>
  +			</fileset>
  +			<mapper type="glob" from="Service*.properties" to="Action*.properties"/>
  +		</move>
  +		<move todir="src/resources/org/apache/cornerstone/framework/action">
  +			<fileset dir="src/resources/org/apache/cornerstone/framework/action">
  +				<include name="*.properties"/>
  +			</fileset>
  +			<mapper type="glob" from="BaseService*.properties" to="BaseAction*.properties"/>
  +		</move>
  +		<move todir="src/resources/org/apache/cornerstone/framework/action">
  +			<fileset dir="src/resources/org/apache/cornerstone/framework/action">
  +				<include name="*.properties"/>
  +			</fileset>
  +			<mapper type="glob" from="*Service.properties" to="*Action.properties"/>
  +		</move>
  +		<!-- replace contents -->
  +		<replace dir="src/resources/org/apache/cornerstone/framework/action" token="Service"
value="Action"/>
  +		<replace dir="src/resources/org/apache/cornerstone/framework/action" token="service"
value="action"/>
  +		<replace dir="src/resources/org/apache/cornerstone/framework/action" token="SERVICE"
value="ACTION"/>
  +	</goal>
     
   </project>
  
  
  
  1.1                  jakarta-jetspeed-2/cornerstone/project.properties
  
  Index: project.properties
  ===================================================================
  # Display the date on the Maven web site
  maven.xdoc.date = left
  
  # Display the maven version the web site is documenting
  maven.xdoc.version = ${pom.currentVersion}
  
  maven.checkstyle.properties=${basedir}/../checkstyle.properties
  
  maven.compile.deprecation=on
  
  # Include private method and field in Javadoc.
  maven.javadoc.private=true
  
  # Removed the rule ${plugin.resources}/rulesets/naming.xml from the default
  # maven.pmd.rulesetfiles.  This is because the LongVariableName rule is to
  # restrictive.  We need to increase the limit from 12 to 20
  maven.pmd.rulesetfiles=${plugin.resources}/rulesets/strings.xml,${plugin.resources}/rulesets/junit.xml,${plugin.resources}/rulesets/braces.xml,${plugin.resources}/rulesets/basic.xml,${plugin.resources}/rulesets/unusedcode.xml,${plugin.resources}/rulesets/design.xml,${plugin.resources}/rulesets/imports.xml,${plugin.resources}/rulesets/codesize.xml
  
  
  CORNERSTONE_HOME=${basedir}
  CORNERSTONE_RUNTIME_HOME=${maven.build.dir}/runtime
  CORNERSTONE_RUNTIME_REGISTRY_DIR=${CORNERSTONE_RUNTIME_HOME}/registry
  
  
  configDir=./config
  registryDir=./registry
  
  
  
  
  
  
  1.1                  jakarta-jetspeed-2/cornerstone/readme.txt
  
  Index: readme.txt
  ===================================================================
  How to Build
  
  Just invoke "maven" from the cornerstone directory.   
  What it does:
    1. Compiles and jars all java classes.
    2. Installs the cornerstone jar into your maven repo.
    3. Builds the runtime environment (needed  to build and run the cornerstone demo).
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message