You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Fermin Da Costa <f....@gmail.com> on 2005/04/04 11:27:48 UTC

Re: Cannot find type issue (solved)

On Apr 3, 2005 6:09 PM, Antoine Levy-Lambert <an...@gmx.de> wrote:

Thx 4 the reply,
 
> add the attribute srcdir="src" to your javac invocation.
This did not wotk because i was calling a main within a class that in
turn starts a compilation. My fault because i did not supply the
actual ant target\task that caused the error, sorry 'bout that.

Thx anyway,

Fermin DCG

> Antoine
> 
> > Hi,
> >
> > Following i'v got a trace from the ant compilation i'm doing on some test
> > classes. The 'normal' classes have all been compiled prior to the
> > test-class run. As one can see the 'normal' classes can be found on
> > the classpath
> >
> > fullRACCompilation:
> >      [echo] New Classpath:
> > ... C:/eclipse/path/to/classes/model/ua/Article.class;...
> >
> >      [echo] Start RAC compiling the unittest files
> >      [java] parsing src\model\ua\Article_JML_Test.java
> >      [java] parsing src\model\ua\Article_JML_TestData.java
> > ...
> >      [java] File "src\model\ua\mgr\ArticleManager_JML_Test.java", line 1,
> > character 1 error: Cannot find type "model.ua.Article"
> >      [java] File "src\model\ua\mgr\ArticleManager_JML_TestData.java", line
> > 1, character 1 error: Cannot find type "model.ua.Article"
> >      [java] File "src\model\ua\mgr\PublicationManager_JML_Test.java", line
> > 1, character 1 error: Cannot find type "model.ua.Article"
> >      [java] File "src\model\ua\mgr\PublicationManager_JML_TestData.java",
> > line 1, character 1 error: Cannot find type "model.ua.Article"
> > BUILD FAILED:
> > C:\eclipse\workspace\unitedAcademics\antscripts\tasktest.xml:163: Java
> > returned: 1
> >
> >
> > Fermin DCG
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org