Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-build-dev] How to create build.xml for a eclipse plugin in a headless way ?

Hi all,

 

I want to create a build.xml for a plugin in a headless way, could somebody please tell me the way how I can do it ?

 

I have done the followings :

 

1.create a bulild.properties as per below :

 

build.properties

___________________________________________

#Sat May 19 09:14:09 GMT+05:30 2007

pluginId=myplugin

basearch=x86

skipFetch=true

baseos=win32

javacDebugInfo=false

buildDirectory=D\:\\PluginBuild

javacTarget=1.5

skipMaps=true

buildId=myplugin

logExtension=.log

configs=win32,win32,x86

archivePrefix=logging

collectingFolder=myplugin

buildType=I

pluginPath=D\:\\PluginBuild

buildLabel=I.myplugin

baseLocation=C\:\\eclipse

runPackager=true

javacFailOnError=true

basews=win32

javacVerbose=true

javacSource=1.5

skipBase=true

__________________________________________

 

2.create a simple script named testbuild.xml

_______________________________________________

<project name=”test” default=”plugin.buildscript.generation”>

<property environment=”env” />

<property file="build.properties" />

 

 <target name="plugin.buildscript.generation">

    <eclipse.buildScript elements="plugin@${pluginId}" buildDirectory="${buildDirectory}" recursiveGeneration="true" buildingOSGI="true"

       baseLocation="${env.ECLIPSE_HOME}" pluginPath="${pluginPath}" />

 </target>

</project

 

3.plugins for which I want to create build.xml are under plugins folder in the same directory.

 

4. call the above script with the following command line :

 

java –jar %ECLIPSE_HOME%\startup.jar org.eclipse.core.launcher.Main –application org.eclipse.ant.core.antRunner –buildfile testbuild.xml

 

 

But it comes with error that myplugin not found.

 

I am not sure what is wrong, can somebody tell me please how can I do this in a more simpler and straight forward way, I only knew this way.

 

Thanks.

Ravi.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

         


Back to the top