Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Finding org.eclipse.core.* items from DTP build.xml files
Finding org.eclipse.core.* items from DTP build.xml files [message #585976] Sat, 23 June 2007 21:15
James Madison is currently offline James Madison
Messages: 1
Registered: July 2009
Junior Member
I downloaded the DTP source. I am attempting to get all the projects to
compile.

Many *.java files have imports starting with "org.eclipse.core." that do
not resolve.

I can fix the unresolved imports by putting one or both of the following
under the "<fileset dir="${eclipse.home}/plugins">" element in the
build.xml files:

<include name="org.eclipse.core.*.jar"/>
<include name="org.eclipse.equinox.*.jar"/>

Those are based on my eclipse.home being c:\eclipse which is where my
plugins directory is, and under there are the *.jar files that contain
the classes needed by the imports. Once I put those in, it builds fine.

But my question is…why are these not already in the build.xml files?
Since the *.java files reference classes in them, the compiler has to
resolve them somewhere. Wouldn’t that be in the build.xml files?

I downloaded the source from
:pserver:anonymous@dev.eclipse.org:/cvsroot/datatools under the HEAD
branch, then the org.eclipse.datatools.* folder, then the plugins
folder, then the org.eclipse.datatools.* folder.

I have made no modifications to the *.java files. I’m on Eclipse 3.2.1
and Java 1.5.0_07.

A specific example:

Get this as a project into Eclipse:
HEAD/
org.eclipse.datatools.modelbase/
plugins/
org.eclipse.datatools.modelbase.sql.query

Run ant against build.xml

This error occurs:
[javac]
C:\dtp_work\org.eclipse.datatools.modelbase.sql.query\src\or g\eclipse\datatools\modelbase\sql\query\util\SQLLogUtil.java :14:
cannot find symbol
[javac] symbol : class Status
[javac] location: package org.eclipse.core.runtime
[javac] import org.eclipse.core.runtime.Status;
[javac] ^

Which points to this package and import:

package org.eclipse.datatools.modelbase.sql.query.util;
import org.eclipse.core.runtime.Status;

As noted above, put in the two includes and it all works fine.

What am I missing?

Thanks!

James
Previous Topic:Finding org.eclipse.core.* items from DTP build.xml files
Next Topic:Getting started: SQL Query Parser
Goto Forum:
  


Current Time: Sat Aug 02 02:55:17 EDT 2014

Powered by FUDForum. Page generated in 0.01496 seconds