Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
d12942c8
Commit
d12942c8
authored
Nov 14, 2014
by
Tom Evans
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #69 from SvenBunge/of-560_removePack200_duringBuild
OF-560: Remove pack200 during build.
parents
4ff26df1
1c625fa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
89 deletions
+8
-89
build.xml
build/build.xml
+8
-89
No files found.
build/build.xml
View file @
d12942c8
...
...
@@ -63,7 +63,6 @@
<property
name=
"jar.starter.name"
value=
"startup.jar"
/>
<property
name=
"jar.dest.dir"
value=
"${work.dir}/lib"
/>
<property
name=
"resources.dir"
value=
"${src.dir}/resources"
/>
<property
name=
"pack200.enabled"
value=
"true"
/>
<property
name=
"overlay.dir"
value=
"${basedir}/custom"
/>
<property
name=
"overlay.src.dir"
value=
"${overlay.dir}/source"
/>
...
...
@@ -201,12 +200,6 @@
<taskdef
name=
"xmltask"
classname=
"com.oopsconsultancy.xmltask.ant.XmlTask"
>
<classpath
refid=
"ant.dependencies"
/>
</taskdef>
<taskdef
name=
"pack200"
classname=
"com.sun.tools.apache.ant.pack200.Pack200Task"
>
<classpath
refid=
"ant.dependencies"
/>
</taskdef>
<taskdef
name=
"unpack200"
classname=
"com.sun.tools.apache.ant.pack200.Unpack200Task"
>
<classpath
refid=
"ant.dependencies"
/>
</taskdef>
<typedef
name=
"srcinc"
classname=
"com.jivesoftware.tools.selector.IncludeSourceSelector"
>
<classpath
refid=
"ant.dependencies"
/>
</typedef>
...
...
@@ -932,40 +925,6 @@
<delete
file=
"${release.out.dir}/bin/openfire-dev.bat"
/>
<delete
file=
"${release.out.dir}/bin/openfire-dev.sh"
/>
<!-- Pack200 processing on JAR files in lib dir -->
<for
param=
"jar"
>
<path>
<fileset
dir=
"${release.out.dir}/lib"
includes=
"*.jar"
excludes=
"startup.jar,jdic.jar,mail.jar,bcpg-jdk15on.jar,bcpkix-jdk15on.jar,bcprov-jdk15on.jar"
/>
</path>
<sequential>
<delete
file=
"@{jar}.pack"
/>
<pack200
src=
"@{jar}"
destfile=
"@{jar}.pack"
gzipoutput=
"false"
/>
<delete
file=
"@{jar}"
/>
</sequential>
</for>
<!-- Pack200 processing on JAR files in admin plugin lib dir -->
<for
param=
"jar"
>
<path>
<fileset
dir=
"${release.out.dir}/plugins/admin/webapp/WEB-INF/lib"
includes=
"*.jar"
excludes=
"startup.jar,jdic.jar,mail.jar,bcpg-jdk15on.jar,bcpkix-jdk15on.jar,bcprov-jdk15on.jar"
/>
</path>
<sequential>
<delete
file=
"@{jar}.pack"
/>
<pack200
src=
"@{jar}"
destfile=
"@{jar}.pack"
gzipoutput=
"false"
/>
<delete
file=
"@{jar}"
/>
</sequential>
</for>
<!-- Copy dist docs, use filtering -->
<copy
todir=
"${release.out.dir}"
>
<fileset
dir=
"${docs.dir}/dist"
includes=
"*.*"
excludes=
"LICENSE.html"
/>
...
...
@@ -1036,7 +995,7 @@
</fileset>
</copy>
<!-- Remove GPL libs from distribution -->
<delete
file=
"${release.out.dir}/lib/mysql.jar
.pack
"
/>
<delete
file=
"${release.out.dir}/lib/mysql.jar"
/>
</target>
<!-- dailybuild ============================================================================ -->
...
...
@@ -1578,53 +1537,13 @@
</then>
</if>
<!-- Some JAR files don't work well through Pack200. When that's the case, they should
be manually added to this list.
-->
<property
name=
"pack200.excludes"
value=
"gnujaxp.jar,mail.jar,bcpg-jdk15on.jar,bcpkix-jdk15on.jar,bcprov-jdk15on.jar,tangosol.jar"
/>
<if>
<equals
arg1=
"${pack200.enabled}"
arg2=
"true"
/>
<then>
<for
param=
"jar"
>
<path>
<fileset
dir=
"${plugin.dev.dest.dir}/@{plugin}/target/lib"
includes=
"*.jar"
excludes=
"${pack200.excludes}"
/>
</path>
<sequential>
<delete
file=
"@{jar}.pack"
/>
<pack200
src=
"@{jar}"
destfile=
"@{jar}.pack"
gzipoutput=
"false"
/>
</sequential>
</for>
<copy
todir=
"${plugin.dev.dest.dir}/@{plugin}/jar"
overwrite=
"true"
>
<fileset
dir=
"${plugin.dev.dest.dir}/@{plugin}/target"
>
<include
name=
"lib/*.pack"
/>
<include
name=
"web/WEB-INF/web.xml"
/>
<include
name=
"web/WEB-INF/web-custom.xml"
/>
</fileset>
</copy>
<!-- Excluded pack files need to be copied over as well -->
<copy
todir=
"${plugin.dev.dest.dir}/@{plugin}/jar/lib"
overwrite=
"true"
>
<fileset
dir=
"${plugin.dev.dest.dir}/@{plugin}/target/lib"
includes=
"${pack200.excludes}"
/>
</copy>
</then>
<else>
<copy
todir=
"${plugin.dev.dest.dir}/@{plugin}/jar"
overwrite=
"true"
>
<fileset
dir=
"${plugin.dev.dest.dir}/@{plugin}/target"
>
<include
name=
"lib/*.jar"
/>
<include
name=
"web/WEB-INF/web.xml"
/>
<include
name=
"web/WEB-INF/web-custom.xml"
/>
</fileset>
</copy>
</else>
</if>
<copy
todir=
"${plugin.dev.dest.dir}/@{plugin}/jar"
overwrite=
"true"
>
<fileset
dir=
"${plugin.dev.dest.dir}/@{plugin}/target"
>
<include
name=
"lib/*.jar"
/>
<include
name=
"web/WEB-INF/web.xml"
/>
<include
name=
"web/WEB-INF/web-custom.xml"
/>
</fileset>
</copy>
<!-- Copy everything else to Openfire's plugin dir -->
<copy
todir=
"${plugin.dev.dest.dir}/@{plugin}/jar"
overwrite=
"true"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment