Skip to content

Commit

Permalink
dragonfly: hack to added required plugins into the updatesite zip
Browse files Browse the repository at this point in the history
because i cannot figure out why the eclipse build is not automatically
adding them.
  • Loading branch information
kgilmer committed Jul 27, 2011
1 parent 8fcbf34 commit f52c922
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
4 changes: 2 additions & 2 deletions com.buglabs.dragonfly.build/com.buglabs.dragonfly.xml
Expand Up @@ -11,7 +11,6 @@
<property name="felix.download.url" value="http://www.eng.lsu.edu/mirrors/apache/felix/" />
<property name="tmp.dir" location="/tmp/dragonly_build_tmp" />
<property name="felix.version" value="3.2.2" />

<property name="publishDir" location="/tmp" />

<!-- ===================================================================== -->
Expand Down Expand Up @@ -83,7 +82,8 @@
<mkdir dir="${checkout.dir}/${project.feature}/build/features" />

<copy todir="${base.build.dir}/${project.feature}/build/plugins">
<fileset dir="${checkout.dir}" excludes="**/${project.feature}/**" />
<fileset dir="${checkout.dir}" excludes="**/${project.feature}/**,**/bug-osgi/**" />
<fileset dir="${checkout.dir}/bug-osgi/" includes="com.buglabs.common/*,com.buglabs.bug.dragonfly/*,com.buglabs.util.nmea/*,com.buglabs.bug.ws/*"/>
</copy>

<copy todir="${base.build.dir}/${project.feature}/build/features/${project.feature}">
Expand Down
35 changes: 20 additions & 15 deletions com.buglabs.dragonfly.feature/customTargets.xml
Expand Up @@ -109,8 +109,7 @@
<!-- ===================================================================== -->
<target name="copyEmulatorJars">
<!-- we need to build the BUG Simulator, which is not an eclipse plugin -->
<property name="virtualBugJarTargetDir" value="${buildDirectory}/plugins/com.buglabs.dragonfly.simulator/bundles" />
<echo message="Copying BUG Simulator jars from directory: ${baseBuildDir}/artifacts/${build.level}/com.buglabs.bug.emulator/current/ to ${virtualBugJarTargetDir}"/>
<property name="virtualBugJarTargetDir" value="${buildDirectory}/plugins/com.buglabs.dragonfly.simulator/bundles" />
<copy todir="${virtualBugJarTargetDir}">
<fileset dir="${baseBuildDir}" />
</copy>
Expand Down Expand Up @@ -188,22 +187,33 @@
</copy>

<copy todir="${UpdateSiteStagingLocation}">
<fileset dir="${updatesiteSourceDir}" />
<fileset dir="${updatesiteSourceDir}" />
</copy>

<mkdir dir="${publishDir}/updatesite" />
<mkdir dir="${publishDir}/updatesite" />
<unzip dest="${publishDir}" src="${buildDirectory}/I.${forceContextQualifier}/${id}-${forceContextQualifier}.zip"></unzip>

<copy todir="${publishDir}/updatesite">
<fileset dir="${UpdateSiteStagingLocation}" />
</copy>

<zip destfile="${publishDir}/${updateSite}-${forceContextQualifier}.zip" basedir="${UpdateSiteStagingLocation}" excludes="CVS .project" />
<copy todir="${UpdateSiteStagingLocation}/plugins">
<fileset dir="${publishDir}/eclipse/plugins/" includes="*.jar" />
</copy>

<exec dir="${UpdateSiteStagingLocation}" executable="find">
<arg line="." />
</exec>

<zip destfile="${publishDir}/${updateSite}-${forceContextQualifier}.zip" basedir="${UpdateSiteStagingLocation}"/>
</target>

<target name="generateUpdateSite">
<target name="generateUpdateSite">
<!-- Create the directory structure -->

<mkdir dir="${UpdateSiteStagingLocation}" />
<mkdir dir="${UpdateSiteStagingLocation}/features" />
<mkdir dir="${UpdateSiteStagingLocation}/plugins" />

<!-- Build the jar files -->
<antcall target="allElements">
<param name="genericTargets" value="${builder}/customTargets.xml" />
Expand All @@ -212,12 +222,14 @@
<antcall target="copySiteXmlFromCvs" />
<antcall target="updateSiteXml" />
</target>

<target name="updateSiteExport">
<ant antfile="build.xml" dir="${buildDirectory}/features/${id}/" target="build.update.jar">
<property name="feature.destination" value="${UpdateSiteStagingLocation}/features" />
<property name="plugin.destination" value="${UpdateSiteStagingLocation}/plugins" />
</ant>
</target>

<target name="copySiteXmlFromCvs" unless="isNightlyBuild">
<copy file="${buildDirectory}/../../${updateSite}/site.xml" tofile="${buildDirectory}/${updateSite}/site.xml"/>
</target>
Expand All @@ -226,14 +238,7 @@

<target name="updateSiteXml">
<replace file="${buildDirectory}/${updateSite}/site.xml" token="qualifier" value="${forceContextQualifier}" />
</target>

<!-- here is where we copy the updatesite to the local web server for outside access -->
<target name="remotePublish">
<copy todir="${CCBaseDirectory}/release/com.buglabs.dragonfly">
<fileset dir="${UpdateSiteStagingLocation}" />
</copy>
</target>
</target>

<!-- ===================================================================== -->
<!-- Steps to do to test the build results -->
Expand Down

0 comments on commit f52c922

Please sign in to comment.