Project

General

Profile

« Previous | Next » 

Revision 7561

build metacat-index.war using maven and copy to the metacat /dist folder. https://projects.ecoinformatics.org/ecoinfo/issues/5907

View differences:

build.xml
41 41
             uri="antlib:org.apache.maven.artifact.ant"
42 42
             classpathref="maven-ant-tasks.classpath" />
43 43

  
44
	<property name="maven.home" value="/usr/share/maven" />
45
	
44 46
	<!-- defining the axis tasks -->
45 47
	<path id="axis.ant.classpath">
46 48
		<fileset dir="lib/lsid_lib">
......
782 784
		<echo>Dev install completed at ${NOW}</echo>
783 785
	</target>
784 786

  
785
	<target name="build-metacat" depends="install-ecogrid, install-spatial"
787
	<target name="build-metacat" depends="install-ecogrid, install-spatial, install-metacat-index"
786 788
		description="Build Metacat">
787 789
	</target>
788 790

  
......
1679 1681
	<target name="install-configured-metacat" depends="change-metacat-properties, install"
1680 1682
        description="Install a metacat by the default value in metacat.properties without additional configutaion">
1681 1683
    </target>
1684

  
1685
	<!-- build metacat-index war -->
1686
	<target name="build-metacat-index" description="Calls the Maven build for metacat-index.war" >		
1687
		<artifact:mvn pom="metacat-index/pom.xml" mavenhome="${maven.home}" fork="true">
1688
			<arg value="package"/>
1689
			<arg value="-Dmaven.test.skip=true"/>
1690
		</artifact:mvn>
1691
	</target>
1682 1692
	
1693
	<target name="install-metacat-index" depends="init, build-metacat-index" description="Copy metacat-index.war to dist folder" >		
1694
		<copy tofile="${dist.dir}/metacat-index.war" >
1695
			<fileset dir="metacat-index/target" includes="metacat-index*.war"></fileset>
1696
		</copy>	
1697
	</target>
1698
	
1683 1699
</project>

Also available in: Unified diff