4 <project name="ext" basedir="." default="deploy" xmlns:antelope="antlib:ise.antelope.tasks">
5 <property name="project.dir" value=".." />
7 <import file="../build-common-plugins.xml" />
12 <isset property="ext.name" />
15 <fail>This task must be called by create.bat.</fail>
20 <isset property="ext.parent.dir" />
23 <property name="ext.parent.dir" value="${basedir}" />
27 <property name="ext.plugin.dir" value="${ext.parent.dir}/${ext.name}-ext" />
30 <available file="${ext.plugin.dir}" />
32 <fail>${ext.name}-ext already exists.</fail>
36 <copy todir="${ext.plugin.dir}">
38 dir="${project.dir}/tools/ext_tmpl"
42 <mkdir dir="${ext.plugin.dir}/docroot/WEB-INF/ext-impl/src" />
43 <mkdir dir="${ext.plugin.dir}/docroot/WEB-INF/ext-lib/global" />
44 <mkdir dir="${ext.plugin.dir}/docroot/WEB-INF/ext-lib/portal" />
45 <mkdir dir="${ext.plugin.dir}/docroot/WEB-INF/ext-service/src" />
46 <mkdir dir="${ext.plugin.dir}/docroot/WEB-INF/ext-util-bridges/src" />
47 <mkdir dir="${ext.plugin.dir}/docroot/WEB-INF/ext-util-java/src" />
48 <mkdir dir="${ext.plugin.dir}/docroot/WEB-INF/ext-util-taglib/src" />
50 <replace dir="${ext.plugin.dir}">
51 <replacefilter token="@ext.name@" value="${ext.name}" />
52 <replacefilter token="@ext.display.name@" value="${ext.display.name}" />
58 <target name="upgrade-ext">
61 <isset property="ext.name" />
67 Usage: ant upgrade-ext -Dext.dir=C:\ext -Dext.name=hello-world -Dext.display.name="Hello World"
69 The arguments "ext.dir", "ext.name", and "ext.display.name" are not properly
72 This task will build an EXT plugin from a legacy EXT environment. The files in
73 the directory denoted by "ext.dir" will be copied into the EXT plugin directory
74 called "ext.name"-ext. The property "ext.dir" must point to a legacy EXT
75 environment and the EXT plugin directory called "ext-name"-ext must not already
82 <available file="${ext.name}-ext" />
84 <fail>${ext.name}-ext already exists.</fail>
88 <antcall target="create">
89 <param name="ext.name" value="${ext.name}" />
90 <param name="ext.display.name" value="${ext.display.name}" />
93 <copy todir="${ext.name}-ext/docroot/WEB-INF/ext-impl/src" failonerror="false">
94 <fileset dir="${ext.dir}/ext-impl/src" />
97 <copy todir="${ext.name}-ext/docroot/WEB-INF/ext-lib/global" failonerror="false">
98 <fileset dir="${ext.dir}/ext-lib/global" />
101 <copy todir="${ext.name}-ext/docroot/WEB-INF/ext-lib/portal" failonerror="false">
102 <fileset dir="${ext.dir}/ext-lib/portal" />
105 <copy todir="${ext.name}-ext/docroot/WEB-INF/ext-service/src" failonerror="false">
106 <fileset dir="${ext.dir}/ext-service/src" />
109 <copy todir="${ext.name}-ext/docroot/WEB-INF/ext-web/docroot" failonerror="false" overwrite="true">
111 dir="${ext.dir}/ext-web/docroot"
112 excludes="**/struts-config.xml,**/tiles-defs.xml"
117 file="${ext.dir}/ext-web/docroot/WEB-INF/struts-config.xml"
118 tofile="${ext.name}-ext/docroot/WEB-INF/ext-web/docroot/WEB-INF/struts-config-ext.xml"
122 file="${ext.dir}/ext-web/docroot/WEB-INF/tiles-defs.xml"
123 tofile="${ext.name}-ext/docroot/WEB-INF/ext-web/docroot/WEB-INF/tiles-defs-ext.xml"
126 <copy todir="${ext.name}-ext/docroot/WEB-INF/sql" failonerror="false">
127 <fileset dir="${ext.dir}/sql" />