mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Changes in the ant targets
* Get properties from the pom file rather than defining it again in the build.properties * Add to the created zip file name for the localisation package the project version * Remove "assembleIconPackage" for rm-server git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@60559 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
# create a file called "build.local.properties" in the same folder and change the value in that file.
|
||||
|
||||
# The application war file properties
|
||||
app.war.version=4.2.0
|
||||
app.war.groupId=org.alfresco
|
||||
app.war.packaging=war
|
||||
|
||||
# Executable properties
|
||||
|
25
build.xml
25
build.xml
@@ -20,11 +20,12 @@
|
||||
</target>
|
||||
|
||||
<target name="fetchWarFile">
|
||||
<xmlproperty file="../pom.xml" keepRoot="false"/>
|
||||
<exec executable="${mvn.exec}" failonerror="true">
|
||||
<arg value="dependency:get" />
|
||||
<arg value="-DgroupId=${app.war.groupId}" />
|
||||
<arg value="-DgroupId=${groupId}" />
|
||||
<arg value="-DartifactId=${app.war.artifactId}" />
|
||||
<arg value="-Dversion=${app.war.version}" />
|
||||
<arg value="-Dversion=${properties.alfresco.base.version}" />
|
||||
<arg value="-Dpackaging=${app.war.packaging}" />
|
||||
<arg value="-Ddest=${ant.build.directory}/${app.package}" />
|
||||
</exec>
|
||||
@@ -79,16 +80,13 @@
|
||||
<exclude name="**/file-mapping.properties" />
|
||||
</fileset>
|
||||
</copy>
|
||||
<zip destfile="${i18n}/${ant.project.name}-r${Revision}.zip" basedir="${i18n}" />
|
||||
<xmlproperty file="../pom.xml" keepRoot="false"/>
|
||||
<zip destfile="${i18n}/${ant.project.name}-${version}-r${Revision}.zip" basedir="${i18n}" />
|
||||
</target>
|
||||
|
||||
<target name="assembleIconPackage" description="">
|
||||
<delete dir="${ant.build.directory}/icons" failonerror="true" />
|
||||
<copy todir="${ant.build.directory}/icons/${ant.project.name}" failonerror="true">
|
||||
<fileset dir=".">
|
||||
<include name="**/*.png"/>
|
||||
<exclude name="**/${ant.build.directory}/**"/>
|
||||
</fileset>
|
||||
<target name="copyWebDirectory" if="${web.directory.exists}">
|
||||
<copy todir="${app.folder}" failonerror="true">
|
||||
<fileset dir="${ant.source.web.directory}" />
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
@@ -111,8 +109,9 @@
|
||||
<exclude name="**/file-mapping.properties" />
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy todir="${app.folder}" failonerror="false">
|
||||
<fileset dir="${ant.source.web.directory}" />
|
||||
</copy>
|
||||
<condition property="web.directory.exists">
|
||||
<available file="${ant.source.web.directory}" type="dir" />
|
||||
</condition>
|
||||
<antcall target="copyWebDirectory"></antcall>
|
||||
</target>
|
||||
</project>
|
Reference in New Issue
Block a user