I'm trying to build an Eclipse plugin with ant4eclipse 0.5.0-RC1
and Eclipse PDE 3.4
This is what I get:

ERROR - [ERROR] firstplugin/actions/SampleAction.java#35: The type 
org.eclipse.swt.widgets.Shell cannot be resolved. It is indirectly 
referenced from required .class files

The main cause is inability to match platform filter.
There are lots of messages like this one:

WARN - Could not resolve 
'org.eclipse.equinox.launcher.gtk.linux.x86_1.0.100.v20080606@/usr/local/eclipse_pde/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.100.v20080606':
WARN -   Platform filter did not match: (& (osgi.ws=gtk) (osgi.os=linux) 
(osgi.arch=x86))
WARN -   Missing Constraint: Fragment-Host: 
org.eclipse.equinox.launcher; bundle-version="[1.0.0,1.1.0)"


I don't understand how come platform doesn't match?
This is my simple build.xml:

<project name="FirstPlugin">
        <taskdef resource="net/sf/ant4eclipse/antlib.xml"/>
        <property name="build.workspace" location="${basedir}/../"/>
        <property name="build.dest" location="/tmp/q/"/>
        <property name="plugin.id" value="FirstPlugin"/>
        <property name="ant4eclipse.trace" value="true"/>

        <targetPlatform id="eclipse-32">
                <location dir="/usr/local/eclipse_pde"/>
        </targetPlatform>

        <target name="build-plugin">
                <buildPlugin destDir="${build.dest}" projectName="${plugin.id}" 
workspace="${build.workspace}"
                                packageasjar="true">
                        <eclipselibrarycompiler />
                        <targetplatform refid="eclipse-32"/>
                </buildPlugin>
        </target>

</project>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ant4eclipse-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ant4eclipse-user

Reply via email to