Just check the list first .

rwxr-xr-x   1 buildadm staff          9559 Sep 17 15:14
build_SENDLISTCOLUMN.xml
-rwxr-xr-x   1 buildadm staff          4530 Sep 17 15:14
build_SENDLISTCOLUMN.properties
-rwxr-xr-x   1 buildadm staff          7601 Sep 17 15:14
build_SEARCHANDHELPCOLUMN.xml
-rwxr-xr-x   1 buildadm staff          9004 Sep 17 15:14
build_SEARCHANDHELPCOLUMN.properties
-rwxr-xr-x   1 buildadm staff         10921 Sep 17 15:14
build_SAVINGSCOLUMN.xml
-rwxr-xr-x   1 buildadm staff          6439 Sep 17 15:14
build_SAVINGSCOLUMN.properties
-rwxr-xr-x   1 buildadm staff         11926 Sep 17 15:14
build_PAYMENTSCOLUMN.xml
-rwxr-xr-x   1 buildadm staff          9325 Sep 17 15:14
build_PAYMENTSCOLUMN.properties
-rwxr-xr-x   1 buildadm staff         11545 Sep 17 15:14
build_PAYMENTCURRENTCOLUMN.xml
-rwxr-xr-x   1 buildadm staff          9351 Sep 17 15:14
build_PAYMENTCURRENTCOLUMN.properties
-rwxr-xr-x   1 buildadm staff          9103 Sep 17 15:14
build_NAVIGATIONCOLUMN.xml
-rwxr-xr-x   1 buildadm staff          7545 Sep 17 15:14
build_NAVIGATIONCOLUMN.properties
--rw-r--r--   1 buildadm staff          7201 Sep 17 15:14
build_MANAGEMENT.xml
-rw-r--r--   1 buildadm staff          7541 Sep 17 15:14
build_MANAGEMENT.properties
-rwxr-xr-x   1 buildadm staff          9844 Sep 17 15:14
build_LOYALITYCOLUMN.xml
-rwxr-xr-x   1 buildadm staff          3794 Sep 17 15:14
build_LOYALITYCOLUMN.properties
-rwxr-xr-x   1 buildadm staff         10221 Sep 17 15:14
build_LOGINLOGOUTCOLUMN.xml
-rwxr-xr-x   1 buildadm staff          4799 Sep 17 15:14
build_LOGINLOGOUTCOLUMN.properties
-rwxr-xr-x   1 buildadm staff          8976 Sep 17 15:14
build_HOMEPAGECOLUMN.xml
-rwxr-xr-x   1 buildadm staff          4365 Sep 17 15:14
build_HOMEPAGECOLUMN.properties
-rw-r--r--   1 buildadm staff         12021 Sep 17 15:14
build_EBPPCOLUMN.xml
-rwxr-xr-x   1 buildadm staff          9234 Sep 17 15:14
build_EBPPCOLUMN.properties
-rwxr-xr-x   1 buildadm staff         10729 Sep 17 15:14
build_DIRECTDEBITCOLUMN.xml
-rwxr-xr-x   1 buildadm staff          5825 Sep 17 15:14
build_DIRECTDEBITCOLUMN.properties
-rwxr-xr-x   1 buildadm staff          8725 Sep 17 15:14
build_CURRENTCOLUMN.properties
-rwxr-xr-x   1 buildadm staff          4337 Sep 17 15:14 build_CMS.xml
-rwxr-xr-x   1 buildadm staff         11276 Sep 17 15:14
build_AUTHORIZATIONCOLUMN.xml
-rwxr-xr-x   1 buildadm staff          7138 Sep 17 15:14
build_AUTHORIZATIONCOLUMN.properties
-rwxr-xr-x   1 buildadm staff          9183 Sep 17 15:14
build_ADRESSBOOKCOLUMN.properties
-rwxr-xr-x   1 buildadm staff         10623 Sep 17 15:17
build_ADRESSBOOKCOLUMN.xml
-rwxr-xr-x   1 buildadm staff          3568 Sep 17 17:03
build_STATUSLISTCOLUMN.properties
-rwxr-xr-x   1 buildadm staff          7475 Sep 17 17:24
build_STATUSLISTCOLUMN.xml


Problem:My problem is
 * I want to run only one build.xml(dependency should be one
build.properties file ) for all the above columns.Each column uses
different xml and properties file.Functionalities of all the xml is
nearly same but locations are different.

* I want to write a generic build script which should not be hardcoded.


Can I get help from anyone?






Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com
<?xml version="1.0"?>
<project name="ING_VIKING" default="savings-package.savingscolumn.ear" basedir="/home/buildadm/scripts">
<property file="build_SAVINGSCOLUMN.properties" /> 
<property name="savings-destdir" value="${destdir}"/>
<property name="savings-tmp" value="${savings-destdir}/tmp"/>
<property name="savings-jars" value="${savings-tmp}/jars"/>
<available classname="com.fortify.dev.ant.SourceanalyzerTask" property="fortify.present"/>
<property name="sourceanalyzer.buildid" value="savingsbuild"/>
<property name="WEBSPHERE" value="/usr/IBM/WebSphere"/>
<property name="PORTALSERVER" value="/usr/IBM/WebSphere/PortalServer"/>
<path id="savings-util.compile.classpath">
<fileset dir="${savings-tmp}/utils">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${WEBSPHERE}/AppServer/lib">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${PORTALSERVER}/shared/app">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${PORTALSERVER}/wcm/shared/app">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${PORTALSERVER}/shared/app/wpai">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="savings-jibx.classpath">
<fileset dir="${util.jars}" includes="jibx-bind.jar,jibx-run.jar,bcel.jar,jibx-extras.jar,qdox-1.6.1.jar,stax-api.jar,wstx-asl.jar,
xmlpull_1_1_4.jar,xpp3.jar"/>
</path>
<taskdef name="savings-bind" classname="org.jibx.binding.ant.CompileTask">
<classpath refid="savings-jibx.classpath"/>
</taskdef>
<target name="savings-init">
<tstamp>
<format property="timestamp" pattern="yyyy-MM-dd_HH-mm-ss"/>
</tstamp>
<property name="Iteration1.log.Iteration1" value="${timestamp}_SAVINGSCOLUMN.log"/>
<record name="/home/buildadm/Buildlogs/${Iteration1.log.Iteration1}" loglevel="verbose" append="false"/>
<echo>Build Logged</echo>
<echo>
	    Start Build Process on ${timestamp}
	    -----------------------------------------
	    Project Name: ${ant.project.name}

	    Ant File: ${ant.file}
	    Ant Version: ${ant.version}
	    Java Version: ${ant.java.version}
	    WAS_HOME: ${WEBSPHERE}
	    JAVA_HOME: ${JAVA_HOME}
	    Portal Server: ${PORTALSERVER}

	    Distribution Directory (where final build is built): ${savings-destdir}
	    -----------------------------------------
	</echo>
<!--  Create the time stamp
-->
<echo message="savings-init"/>
<delete dir="${savings-destdir}" />
<echo message="savings-destdir deleted" />
<!--  Create the build directory structure used by compile
-->
<mkdir dir="${savings-destdir}" />
<echo message="destdir created" />
<mkdir dir="${savings-tmp}/utils" />
<mkdir dir="${savings-tmp}/jars" />
<mkdir dir="${savings-tmp}/SavingsColumn" />
<mkdir dir="${savings-tmp}/SavingsColumnJibx" />
<mkdir dir="${savings-tmp}/SavingsColumnWeb" />
<mkdir dir="${savings-tmp}/SavingsColumnWebService" />
<mkdir dir="${savings-tmp}/SavingsColumnEAR" />
<copy todir="${savings-tmp}/utils">
<fileset dir="${util.jars}"/>
</copy>
<echo message="savings-util.jars copied" />
</target>
<target name="savings-package.savingscolumn" depends="savings-package.savingscolumn.jibx">
<echo message="Copying SavingsColumn" />
<mkdir dir="${savings-tmp}/SavingsColumn/classes" />
<copy todir="${savings-tmp}/SavingsColumn">
<fileset dir="${sourcedir.SavingsColumn}" />
</copy>
<copy todir="${savings-tmp}/SavingsColumn/classes">
<fileset dir="${savings-tmp}/SavingsColumn/src" includes="**/*.hbm.xml" />
</copy>
<echo message="Compiling SavingsColumn" />
<javac debug="on" optimize="on" destdir="${savings-tmp}/SavingsColumn/classes" includes="*.java" deprecation="off" verbose="off" failonerror="true">
<src path="${savings-tmp}/SavingsColumn/src" />
<include name="**/*.java" />
<classpath>
<path refid="savings-util.compile.classpath" />
<fileset dir="${savings-jars}">
<include name="*.jar" />
</fileset>
</classpath>
</javac>
<echo message="Packaging SavingsColumn" />
<jar destfile="${savings-jars}/${savingscolumn.Jarname}.jar" basedir="${savings-tmp}/SavingsColumn/classes" 
manifest="${savingscolumn.manifest.location}/MANIFEST.MF" />
</target>
<target name="savings-package.savingscolumn.jibx" depends="savings-init">
<echo message="Copying SavingsColumnJibx" />
<mkdir dir="${savings-tmp}/SavingsColumnJibx/classes" />
<copy todir="${savings-tmp}/SavingsColumnJibx">
<fileset dir="${sourcedir.SavingsColumnJibx}" />
</copy>
<echo message="Compiling SavingsColumnJibx" />
<javac debug="on" optimize="on" destdir="${savings-tmp}/SavingsColumnJibx/classes" includes="*.java" deprecation="off" verbose="off" failonerror="true">
<src path="${savings-tmp}/SavingsColumnJibx/src" />
<include name="**/*.java" />
<classpath>
<path refid="savings-util.compile.classpath" />
<fileset dir="${savings-jars}">
<include name="*.jar" />
</fileset>
</classpath>
</javac>
<savings-bind load="true">
<bindingfileset dir="${bindingfile.location}">
<include name="bindCloseSavings.xml" /> 
  <include name="bindingInq.xml" /> 
  <include name="bindingGetParty.xml" /> 
  <include name="bindingISP.xml" /> 
  <include name="bindingBookBalanceRq.xml"/>
  <include name="bindingBookBalanceRs.xml"/>
  <include name="bindingOpenSav.xml" /> 
  <include name="bindingAddSav.xml" /> 
  <include name="bindingAddSavTras.xml" /> 
  <include name="bindInqTransacGiroRq.xml"/>
  <include name="bindInqTransacGiroRs.xml"/>
  <include name="bindInqTransSav.xml" /> 
<include name="bindingF1GetPartyBasicDataReply.xml"/>
<include name="bindingF1GetPartyBasicDataRequest.xml"/>
</bindingfileset>
<classpath>
<path refid="savings-jibx.classpath" />
<pathelement location="${savings-tmp}/SavingsColumnJibx/classes" />
</classpath>
</savings-bind>
<echo message="Packaging SavingsColumnJibx" />
<jar destfile="${savings-jars}/${savingscolumnjibx.Jarname}.jar" basedir="${savings-tmp}/SavingsColumnJibx/classes" 
manifest="${savingscolumn.manifest.location}/MANIFEST.MF" />
</target>
<target name="savings-package.savingscolumn.web" depends="savings-package.savingscolumn">
	<echo message="Copying SavingsColumnWeb" />
	<mkdir dir="${savings-tmp}/SavingsColumnWeb/WebContent/WEB-INF/classes" />
	<copy todir="${savings-tmp}/SavingsColumnWeb">
		<fileset dir="${sourcedir.SavingsColumnWeb}" />
	</copy>
	<mkdir dir="${savings-tmp}/SavingsColumnWeb/WebContent/WEB-INF/classes/resources" />
	<copy todir="${savings-tmp}/SavingsColumnWeb/WebContent/WEB-INF/classes/resources">
		<fileset dir="${savings-tmp}/SavingsColumnWeb/src/resources" includes="*.properties, *.xml" />
	</copy>
	<copy todir="${savings-tmp}/SavingsColumnWeb/WebContent/WEB-INF/lib">
		<fileset file="${savings-jars}/${savingscolumn.Jarname}.jar" />
		<fileset file="${savings-jars}/${savingscolumnjibx.Jarname}.jar" />
	</copy>
	<echo message="Compiling SavingsColumnWeb" />
	<javac debug="on" optimize="on" destdir="${savings-tmp}/SavingsColumnWeb/WebContent/WEB-INF/classes" includes="*.java" deprecation="off" verbose="off" failonerror="true">
	<src path="${savings-tmp}/SavingsColumnWeb/src" />
	<include name="nl/**/*.java" />
	<classpath>
	<path refid="savings-util.compile.classpath" />
	<fileset dir="${savings-jars}">
	<include name="*.jar" />
	</fileset>
	</classpath>
	</javac>
	<jar destfile="${savings-jars}/${savingscolumnweb.Warname}.war"
	 basedir="${savings-tmp}/SavingsColumnWeb/WebContent" manifest="${savingscolumn.manifest.location}/MANIFEST.MF" />
</target>
<target name="savings-package.savingscolumn.webservice" depends="savings-package.savingscolumn.web">
	<echo message="Copying SavingsColumnWebService" /> 
	<mkdir dir="${savings-tmp}/SavingsColumnWebService/WebContent/WEB-INF/classes" /> 
	<copy todir="${savings-tmp}/SavingsColumnWebService">
	<fileset dir="${sourcedir.SavingsColumnWebService}"/>
	</copy>
	<echo message="Compiling SavingsColumnWebService" /> 
	<javac debug="on" optimize="on" destdir="${savings-tmp}/SavingsColumnWebService/WebContent/WEB-INF/classes" includes="*.java" deprecation="off" 
	verbose="off" failonerror="true">
	<src path="${savings-tmp}/SavingsColumnWebService/src" /> 
	<include name="nl/**/*.java" /> 
	<classpath>
	<path refid="savings-util.compile.classpath" /> 
	<fileset dir="${savings-jars}">
	<include name="*.jar" /> 
	</fileset>
	</classpath>
	</javac>
	<jar destfile="${savings-jars}/${savingscolumnwebservice.Warname}.war"
	 basedir="${savings-tmp}/SavingsColumnWebService/WebContent" manifest="${savingscolumnwebservice.manifest.location}/MANIFEST.MF" /> 
</target>
<target name="savings-package.savingscolumn.ear" depends="savings-package.savingscolumn.webservice">
	<echo message="Packaging SavingsColumn EAR" /> 
	<copy todir="${savings-tmp}/SavingsColumnEAR">
		<fileset dir="${savings-jars}" includes="SavingsColumnWeb.war
		,SavingsColumnWebService.war"/>
	</copy>
	<jar destfile="${savings-destdir}/savingscolumn.ear" basedir="${savings-tmp}/SavingsColumnEAR">
		<metainf dir="${savingscolumnear.deploymentdescriptor}"
		includes="*.xml,*.xmi" /> 
	</jar>
</target>
<target name="savings-fortify" if="fortify.present">
<typedef name="sourceanalyzer" classname="com.fortify.dev.ant.SourceanalyzerTask"/>
<!--call clean to ensure that all source files are recompiled --> 
<exec executable="sourceanalyzer">
<arg value="-b"/>
<arg value="${sourceanalyzer.buildid}"/>
<arg value="-clean"/>
</exec>
<antcall target="savings-package.savingscolumn.ear"> 
<!--call the compile target using the SCA Compiler Adapter to -->
<!-- translate all source files --> 
<param name="build.compiler"
value="com.fortify.dev.ant.SCACompiler" />
</antcall> 
<tstamp>
           <format property="fortify-timestamp" pattern="yyyy-MM-dd_HH-mm-ss" />
</tstamp>
<!-- capture all configuration files in the WEB-INF directory -->
<echo>sourceanalyzer ${SavingsColumn.WebContent}</echo>
<sourceanalyzer buildid="${sourceanalyzer.buildid}">
<fileset dir="${SavingsColumn.WebContent}">
<include name="**/*.properties"/>
<include name="**/*.xml"/>
</fileset>
</sourceanalyzer>
<echo>sourceanalyzer ${SavingsColumnWebService.WebContent}</echo>
<sourceanalyzer buildid="${sourceanalyzer.buildid}">
<fileset dir="${SavingsColumnWebService.WebContent}">
<include name="**/*.properties"/>
<include name="**/*.xml"/>
</fileset>
</sourceanalyzer>
<!-- translate all jsp files -->
<echo>sourceanalyzer jsp</echo>
<sourceanalyzer buildid="${sourceanalyzer.buildid}">
<fileset dir="${SavingsColumn.WebContent}">
<include name="**/*.jsp"/>
</fileset>
<classpath refid="savings-util.compile.classpath"/>
</sourceanalyzer>
<sourceanalyzer buildid="${sourceanalyzer.buildid}">
<fileset dir="${SavingsColumnWebService.WebContent}">
<include name="**/*.jsp"/>
</fileset>
<classpath refid="savings-util.compile.classpath"/>
</sourceanalyzer>
<!-- run analysis -->
<echo>sourceanalyzer scan</echo>
<sourceanalyzer buildid="${sourceanalyzer.buildid}"
scan="true"
resultsfile="Build_Fortify_Iteration1_SavingsColumn_${fortify-timestamp}.fpr"/>
<sourceanalyzer buildid="${sourceanalyzer.buildid}"
scan="true"
resultsfile="Build_Fortify_Iteration1_SavingsColumn_${fortify-timestamp}.fvdl"/>
</target>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to