Skip to content

Commit

Permalink
LPS-35702 Declarative way to declare dependencies in an OSGi bundle t…
Browse files Browse the repository at this point in the history
…o deploy along with it
  • Loading branch information
migue authored and brianchandotcom committed Jun 1, 2013
1 parent e39bb71 commit c0205e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
12 changes: 7 additions & 5 deletions build-common-osgi-plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,14 @@
</antcall>
</target>

<target name="deploy" depends="jar">
<copy failonerror="false" todir="${osgi.auto.deploy.dir}">
<fileset dir="lib" includes="*.jar" />
</copy>
<target name="deploy" depends="jar,deploy-dependencies">
<copy file="${plugin.file}" todir="${auto.deploy.dir}" />
</target>

<copy file="${plugin.file}" todir="${osgi.auto.deploy.dir}" />
<target name="deploy-dependencies">
<copy failonerror="false" todir="${auto.deploy.dir}">
<fileset dir="lib" includes="${module.dependencies}" />
</copy>
</target>

<target name="jar" depends="compile">
Expand Down
10 changes: 0 additions & 10 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,6 @@
os.unix=Linux,FreeBSD,Solaris,SunOS
os.windows=Windows 95,Windows 98,Windows NT,Windows 2000,Windows 2003,Windows XP,Windows Vista,Windows 7

##
## OSGi
##

#
# OSGi bundles will be deployed to this directory. Make sure that the
# Liferay module framework is enabled and is set to scan this directory.
#
osgi.auto.deploy.dir=${app.server.parent.dir}/osgi/deploy

##
## Plugins
##
Expand Down

0 comments on commit c0205e8

Please sign in to comment.