Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
LPS-65815 not used, ear_tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed May 12, 2016
1 parent 2ca85d5 commit 3740324
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 105 deletions.
95 changes: 0 additions & 95 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,101 +121,6 @@
</if>
</target>

<target name="ear">
<delete dir="dist/liferay-portal.ear" />
<delete dir="dist/modules" />

<copy todir="dist" overwrite="yes">
<fileset
dir="${sdk.dir}/tools/templates/ear_tmpl"
/>
</copy>

<copy todir="dist/modules/APP-INF/lib">
<fileset dir="${app.server.lib.global.dir}">
<include name="*.jar" />
</fileset>
</copy>

<fileset dir="dist/modules" id="ear.dependency.libraries">
<include name="APP-INF/lib/*.jar" />
</fileset>

<pathconvert pathsep=" " property="ear.dependency.libraries.converted" refid="ear.dependency.libraries">
<mapper>
<chainedmapper>
<flattenmapper />
<globmapper from="*.jar" to="APP-INF/lib/*.jar" />
</chainedmapper>
</mapper>
</pathconvert>

<war
basedir="${app.server.portal.dir}"
destfile="dist/modules/liferay-portal.war"
>
<manifest>
<attribute name="Class-Path" value="${ear.dependency.libraries.converted}" />
</manifest>
</war>

<for param="module.full.path">
<path>
<dirset
dir="${app.server.deploy.dir}"
excludes="${plugins.ear.excludes}"
includes="${plugins.ear.includes}"
/>
</path>
<sequential>
<antelope:stringutil string="@{module.full.path}" property="module.full.path.unix">
<antelope:replace regex="\\" replacement="/" />
</antelope:stringutil>

<antelope:grep in="${module.full.path.unix}" regex="(.*/)(.*)" group="2" property="module.name" />

<war
basedir="@{module.full.path}"
destfile="dist/modules/${module.name}.war"
/>
</sequential>
</for>

<fileset dir="dist/modules" id="ear.modules">
<include name="*.war" />
</fileset>

<pathconvert pathsep="," property="ear.modules.converted" refid="ear.modules">
<mapper>
<chainedmapper>
<flattenmapper />
</chainedmapper>
</mapper>
</pathconvert>

<java
classname="com.liferay.portal.tools.EARBuilder"
classpathref="portal.classpath"
fork="true"
newenvironment="true"
>
<jvmarg value="-Dexternal-properties=com/liferay/portal/tools/dependencies/portal-tools.properties" />
<arg value="${basedir}/dist/modules/META-INF/application.xml" />
<arg value="${ear.modules.converted}" />
<arg value="${plugins.ear.portal.context.path}" />
</java>

<ear
appxml="dist/modules/META-INF/application.xml"
basedir="dist/modules"
destfile="dist/liferay-portal.ear"
excludes="META-INF/application.xml"
includes="**/*.jar,*.war,META-INF/*.xml"
/>

<delete dir="dist/modules" />
</target>

<target name="extract-plugins-sdk">
<extract-plugins-sdk />
</target>
Expand Down
10 changes: 0 additions & 10 deletions tools/templates/ear_tmpl/modules/META-INF/application.xml

This file was deleted.

0 comments on commit 3740324

Please sign in to comment.