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
427a660e
Commit
427a660e
authored
Aug 03, 2015
by
Guus der Kinderen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-935: Build: Parent plugins should be on classpath of child plugins.
parent
a8408edc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
35 deletions
+32
-35
build.xml
build/build.xml
+32
-35
No files found.
build/build.xml
View file @
427a660e
...
...
@@ -1245,22 +1245,20 @@
<subdirinfo
dir=
"${plugin.src.dir}"
property=
"dirlist"
ifexists=
"plugin.xml"
except=
"admin"
/>
<antcall
target=
"-plugins-impl-dev"
/>
<antcall
target=
"-plugins-impl"
/>
<!-- Update/create target/openfire directory -->
<antcall
target=
"openfireHome"
/>
</target>
<target
name=
"-plugins-impl"
if=
"dirlist"
>
<!-- F
or each plugin in the main src dir, call the 'buildplugin' macro
-->
<!-- F
irst, do all plugins that do not have a parent plugin (some of them could be parents of others)
-->
<for
list=
"${dirlist}"
param=
"plugin"
trim=
"true"
>
<sequential>
<xmlproperty
file=
"${plugin.src.dir}/@{plugin}/plugin.xml"
keeproot=
"true"
/>
<if>
<
equals
arg1=
"@{plugin}"
arg2=
"clustering
"
/>
<
isset
property=
"plugin.parentPlugin
"
/>
<then>
<echo
message=
"bypassing clustering plugin, build via single plugin target if needed"
/>
</then>
<else>
<buildplugin
plugin=
"@{plugin}"
pluginsrc=
"${plugin.src.dir}"
/>
...
...
@@ -1269,28 +1267,15 @@
</sequential>
</for>
</target>
<target
name=
"-plugins-impl-dev"
if=
"plugin.dev.dir"
depends=
"anttasks"
>
<!-- Get a list of plugins in the optional dev dir -->
<subdirinfo
dir=
"${plugin.dev.dir}"
property=
"dirlist2"
ifexists=
"plugin.xml"
/>
<antcall
target=
"-plugin-impl-dev-build"
/>
</target>
<target
name=
"-plugin-impl-dev-build"
if=
"dirlist2"
>
<!-- For each list of plugins in the dev dir call the 'buildplugin' macro -->
<for
list=
"${dirlist2}"
param=
"plugin"
trim=
"true"
>
<!-- Lastly, do all plugins that have defined a parent plugin. This works, as long as there are no 'chains' -->
<for
list=
"${dirlist}"
param=
"plugin"
trim=
"true"
>
<sequential>
<xmlproperty
file=
"${plugin.src.dir}/@{plugin}/plugin.xml"
keeproot=
"true"
/>
<if>
<
equals
arg1=
"@{plugin}"
arg2=
"clustering
"
/>
<
isset
property=
"plugin.parentPlugin
"
/>
<then>
<
echo
message=
"bypassing clustering plugin, build via single plugin target if needed
"
/>
<
buildplugin
plugin=
"@{plugin}"
pluginsrc=
"${plugin.src.dir}
"
/>
</then>
<else>
<buildplugin
plugin=
"@{plugin}"
pluginsrc=
"${plugin.dev.dir}"
/>
</else>
</if>
</sequential>
</for>
...
...
@@ -1322,15 +1307,32 @@
<mkdir
dir=
"${plugin.dev.dest.dir}/@{plugin}"
/>
<mkdir
dir=
"${plugin.dev.dest.dir}/@{plugin}/target"
/>
<!-- Determine if this plugin has a parent plugin and if so, add it to the classpath. Note that it is
up to the caller to guarantee that a parent plugin has already been compiled!
-->
<xmlproperty
file=
"${plugin.src.dir}/@{plugin}/plugin.xml"
keeproot=
"true"
/>
<if>
<isset
property=
"plugin.parentPlugin"
/>
<then>
<echo>
Parent plugin found: ${plugin.parentPlugin}
</echo>
<path
id=
"plugin.classpath.source"
>
<path
refid=
"plugin.dependencies"
/>
<fileset
dir=
"@{pluginsrc}/@{plugin}"
includes=
"lib/*.jar"
/>
<fileset
dir=
"${plugin.dev.dest.dir}/${plugin.parentPlugin}/target/"
includes=
"lib/*.jar"
/>
</path>
</then>
<else>
<path
id=
"plugin.classpath.source"
>
<path
refid=
"plugin.dependencies"
/>
<fileset
dir=
"@{pluginsrc}/@{plugin}"
includes=
"lib/*.jar"
/>
</path>
</else>
</if>
<!-- Compile plugin source code -->
<mkdir
dir=
"${plugin.dev.dest.dir}/@{plugin}/target/classes"
/>
<of.javac
destdir=
"${plugin.dev.dest.dir}/@{plugin}/target/classes"
>
<of.javac
destdir=
"${plugin.dev.dest.dir}/@{plugin}/target/classes"
classpathref=
"plugin.classpath.source"
>
<src
path=
"@{pluginsrc}/@{plugin}/src/java"
/>
<classpath>
<path
refid=
"plugin.dependencies"
/>
<!-- Jars used by the plugin to compile with -->
<fileset
dir=
"@{pluginsrc}/@{plugin}"
includes=
"lib/*.jar"
/>
</classpath>
</of.javac>
<mkdir
dir=
"${plugin.dev.dest.dir}/@{plugin}/target/lib"
/>
...
...
@@ -1362,15 +1364,10 @@
<src
path=
"@{pluginlib}/source"
/>
<classpath>
<pathelement
location=
"${plugin.dev.dest.dir}/@{plugin}/target/classes"
/>
<path>
<path
refid=
"plugin.dependencies"
/>
<!-- Jars used by the plugin to compile with -->
<fileset
dir=
"@{pluginsrc}/@{plugin}"
includes=
"lib/*.jar"
/>
</path>
<path
refid=
"plugin.classpath.source"
/>
</classpath>
</of.javac>
<jar
jarfile=
"${plugin.dev.dest.dir}/@{plugin}/target/lib/@{plugin}-lib.jar"
>
<fileset
dir=
"@{pluginlib}/classes"
/>
</jar>
...
...
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