|
|
|
Re: Generating build.xml files for a feature at command line? (2nd post attempt) [message #273488 is a reply to message #273486] |
Wed, 06 October 2004 16:37  |
Eclipse User |
|
|
|
Forgot to include my Ant build script file that uses
<eclipse.buildScript> element to build my feature's and plugins'
build.xml files. Please see below. 'basedir' is the directory that I
run the script and the one that has all plugin directories and my
feature directory, which is 'MyFeature'. I keep getting the error
"buildscripts.xml:26: org.eclipse.core.runtime.CoreException: Unable to
find feature: my.com.feature." Greatly appreciate your help!
<?xml version="1.0" encoding="UTF-8"?>
<project name="my.com.project" default="buildScripts" basedir=".">
<!-- Comments:
-->
<target name="init">
<!-- Need to change on this on different platform. The
standard Eclipse installation location is used here
for the WINDOWS XP platform.
-->
<property name="eclipse.install.dir" value="c:/eclipse"/>
</target>
<target name="buildScripts" depends="init">
<eclipse.buildScript
elements="feature@my.com.feature"
buildDirectory="${basedir}/MyFeature"
baseLocation="${eclipse.install.dir}"
buildingOSGi="true"
children="true"
recursiveGeneration="true"
devEntries="${basedir}/plugin1/bin,${basedir}/plugin2/bin"
configInfo="*, *, *"
pluginPath="${basedir}/plugin1/,${basdir}/plugin2/"
/>
</target>
</project>
AL wrote:
> Please help on the below...
>
> Now that I put in the baseLocation="C:/eclipse" attribute into the
> <eclipse.buildScript> element AND have all features deployed, then I see
> the build.xml files get generated. But these build.xml are generated in
> the C:\eclipse\features\my.com.feature and c:\eclipse\features\my.plugin
> directories. QUESTION: Why do I have to deployed my feature before I
> can have the build.xml files generated? All I want is to generate the
> build.xml files for my feature and all the plugins that the feature
> mentioned IN my source directories.
>
> Many thanks in advance for any help.
>
> AL wrote:
>
>> So far this is what I have found out.
>>
>> -Create a buildscripts.xml like the below. I am using 3.0RC1, by the
>> way. eclipse.buildId=M200409081421.
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project name="project.name" default="buildScripts" basedir=".">
>>
>> <target name="init">
>> </target>
>>
>> <target name="buildScripts" depends="init">
>>
>> <eclipse.buildScript
>> elements="feature@my.com.feature"
>> buildDirectory="${basedir}"
>> buildingOSGi="true"
>> />
>> </target>
>>
>>
>> </project>
>>
>> I run as follows, not using eclipse.exe. I run in the directory just
>> above my feature's and plugins' directories, that is, the parent
>> directory of all my feature's and plugins' directories.
>>
>> java -cp c:\eclipse\startup.jar org.eclipse.core.launcher.Main
>> -application org.eclipse.ant.core.antRunner -buildfile
>> buildscripts.xml "buildScripts"
>>
>> BUT I GOT THE BELOW:
>>
>> c:\myfeaturedir\buildscripts.xml:20:
>> org.eclipse.core.runtime.CoreException: Unable to find feature:
>> my.com.feature.
>>
>> I read documentation that 'elements' attribute in the above build file
>> is format of 'type@id'. <b>It looks like I have to have my source
>> checked into CVS to have this work?</b>
>>
>> Thanks.
>>
>> AL wrote:
>>
>>> Hi,
>>>
>>> My second attempt to post this.
>>>
>>> I'd appreciate an example or tips on how to generate the build.xml
>>> files at command line for a feature that comprises of a set of plugins.
>>>
>>> Many thanks.
>>>
>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03229 seconds