<?xml version="1.0"?>
<project name="Custom Action Build File" default="package" basedir=".">
<property name="project.dir" value="."/>
<property name="build.dir" value="${project.dir}/build"/>
<property name="web.dir" value="${project.dir}/web" />
<property name="package.file" value="${build.dir}/actioncat.jar"/>
<property name="package.file.zip" value="${build.dir}/actioncat.zip"/>
<path id="class.path">
<dirset dir="${build.dir}" />
<fileset dir="../../lib/server" includes="**/*.jar"/>
</path>
<target name="compile">
<mkdir dir="${build.dir}" />
<javac classpathref="class.path" srcdir="${project.dir}/source" destdir="${build.dir}" />
</target>
<target name="package">
<jar destfile="${package.file}">
<fileset dir="${build.dir}"/>
</jar>
</target>
<target name="package-jar">
<delete file="${package.file.jar}" />
<jar destfile="${package.file.jar}">
<fileset dir="${build.dir}" excludes="*.zip"/>
<fileset dir="${config.dir}"/>
</jar>
</target>
<target name="package-extension" depends="package-jar">
<delete file="${package.file.zip}" />
<zip destfile="${package.file.zip}">
<zipfileset file="${package.file.jar}" prefix="WEB-INF/lib" />
<zipfileset dir="${web.dir}" />
</zip>
</target>
<target name="integrate-extension" depends="package-extension">
<available file="alfresco.war" type="file" property="alfresco.war.present" />
<fail unless="alfresco.war.present"
message="Could not find alfresco.war, please copy it to ${basedir}" />
<zip destfile="alfresco.war" update="true">
<zipfileset file="${package.file.jar}" prefix="WEB-INF/lib" />
<zipfileset dir="${web.dir}" />
</zip>
</target>
</project>
Merci
<?xml version="1.0"?>
<project name="Custom Action Build File" default="package" basedir=".">
<property name="project.dir" value="."/>
<property name="build.dir" value="${project.dir}/build"/>
<property name="web.dir" value="${project.dir}/web" />
<property name="package.file" value="${build.dir}/actioncat.jar"/>
<property name="package.file.zip" value="${build.dir}/actioncat.zip"/>
<path id="class.path">
<dirset dir="${build.dir}" />
<fileset dir="../../lib/server" includes="**/*.jar"/>
</path>
<target name="compile">
<mkdir dir="${build.dir}" />
<javac classpathref="class.path" srcdir="${project.dir}/source" destdir="${build.dir}" />
</target>
<target name="package-jar" depends="compile">
<delete file="${package.file}" />
<jar destfile="${package.file}">
<fileset dir="${build.dir}" excludes="*.zip"/>
<fileset dir="${config.dir}"/>
</jar>
</target>
<target name="package-extension" depends="package-jar">
<delete file="${package.file.zip}" />
<zip destfile="${package.file.zip}">
<zipfileset file="${package.file.jar}" prefix="WEB-INF/lib" />
<zipfileset dir="${web.dir}" />
</zip>
</target>
<target name="integrate-extension" depends="package-extension">
<available file="alfresco.war" type="file" property="alfresco.war.present" />
<fail unless="alfresco.war.present"
message="Could not find alfresco.war, please copy it to ${basedir}" />
<zip destfile="alfresco.war" update="true">
<zipfileset file="${package.file}" prefix="WEB-INF/lib" />
<zipfileset dir="${web.dir}" />
</zip>
</target>
</project>
<project name="Custom Action Build File" default="package-jar" basedir=".">
C'est-à-dire qu'il est préférable de spécifier la target par défaut, bien qu'il vous soit toujours possible de spécifier la target avec un clique-droit approprié.pourquoi vous avez supprimez le target packageTout simplement parce que, comme vous, je ne comprenais pas à quoi elle pouvait bien servir ;-)
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.