Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] PDE eclipse.buildScript - Unable to find feature

Sorry for posting this to the mailing list, but I've tried asking in the platform newsgroup without anyone being able to answer my question. I'm trying to use the eclipse.buildScript ant task to generate a build.xml script for building my feature plugin. I'm running it from the command line using:

java -cp /path/to/startup.jar org.eclipse.core.launcher.Main -application org.eclipse.ant.core.antRunner -buildfile build-feature.xml

The build-feature.xml contains an ant target that simply does:

<eclipse.buildScript
   elements="feature@xxxxxxxxxx-feature"
   buildDirectory="${basedir}"/>

(basedir is the directory containing the feature-project [the feature-project is called com.foo.my-feature])

When I run this I get the following error:

BUILD FAILED
.../build-feature.xml:48: org.eclipse.core.runtime.CoreException: Unable to find feature: com.foo.my-feature.

Any hints to what I'm doing wrong? I tried passing the -debug flag to antRunner, but that didn't give me anymore useful info..

It should be possible to use the eclipse.buildScript ant task and simply specifying a local directory where the feature is located, right? Or do I have to use the eclipse.fetch task for eclipse to be able to find the files?

Thanks,

/Hampus Edvardsson



Back to the top