Jump to: navigation, search

Difference between revisions of "Orbit Source Bundles"

Line 12: Line 12:
 
       plugin.xml
 
       plugin.xml
 
       build.properties
 
       build.properties
 +
      customCallbacks.xml
 
       src/
 
       src/
 
         {plugin_id}_{version}/
 
         {plugin_id}_{version}/
 
             src.zip
 
             src.zip
 +
</pre>
 +
 +
customCallbacks.xml
 +
<pre>
 +
<?xml version="1.0" encoding="UTF-8"?>
 +
<project name="customCallbacks" default="post.gather.bin.parts" basedir=".">
 +
<target name="post.gather.bin.parts">
 +
<echo message="${target.folder}" />
 +
<echo message="${build.result.folder}" />
 +
<pathconvert property="binaryBundleId">
 +
<path>
 +
<fileset dir="${target.folder}/src" includes="**" />
 +
</path>
 +
<regexpmapper from=".*\\(.*)_(.*)\\.*" to="\1" />
 +
</pathconvert>
 +
<pathconvert property="sourceFolderVersion">
 +
<path>
 +
<fileset dir="${target.folder}/src" includes="**" />
 +
</path>
 +
<regexpmapper from=".*\\(.*_.*)\\.*" to="\1" />
 +
</pathconvert>
 +
<move todir="${target.folder}/src/${binaryBundleId}_${bundleVersion}">
 +
<fileset dir="${target.folder}/src/${sourceFolderVersion}" includes="**" />
 +
</move>
 +
</target>
 +
</project>
 +
</pre>
 +
 +
build.properties
 +
<pre>
 +
customBuildCallbacks=customCallbacks.xml
 +
customBuildCallbacks.inheritall=true             
 
</pre>
 
</pre>
 
[[Category : Orbit]]
 
[[Category : Orbit]]

Revision as of 15:11, 14 May 2007

Created from bug 184026.

{plugin_root}
   META-INF/MANIFEST.MF
   plugin.xml
   plugin.properties
   build.properties
   {class_files}
   source-bundle/
      META-INF/MANIFEST.MF
      plugin.xml
      build.properties
      customCallbacks.xml
      src/
         {plugin_id}_{version}/
            src.zip

customCallbacks.xml

<?xml version="1.0" encoding="UTF-8"?>
<project name="customCallbacks" default="post.gather.bin.parts" basedir=".">
	<target name="post.gather.bin.parts">
		<echo message="${target.folder}" />
		<echo message="${build.result.folder}" />
		<pathconvert property="binaryBundleId">
			<path>
				<fileset dir="${target.folder}/src" includes="**" />
			</path>
			<regexpmapper from=".*\\(.*)_(.*)\\.*" to="\1" />
		</pathconvert>
		<pathconvert property="sourceFolderVersion">
			<path>
				<fileset dir="${target.folder}/src" includes="**" />
			</path>
			<regexpmapper from=".*\\(.*_.*)\\.*" to="\1" />
		</pathconvert>
		<move todir="${target.folder}/src/${binaryBundleId}_${bundleVersion}">
			<fileset dir="${target.folder}/src/${sourceFolderVersion}" includes="**" />
		</move>
	</target>
</project>

build.properties

customBuildCallbacks=customCallbacks.xml
customBuildCallbacks.inheritall=true