ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bansemir, Carsten" <Carsten.Banse...@huk-coburg.de>
Subject AW: Have you imported a source file into Visual Age for Java
Date Wed, 23 Jul 2003 10:38:04 GMT
are you running ant via VAJ or from the command line?

the original FAQ of the VAJ tasks has an error:

http://ant.apache.org/manual/Integration/VAJAntTool.html#faq says:

Q: I want to use the same buildfile both within Visual Age and from the command line using
my regular Ant environment. What do I need to be aware of?
A: You have to specifie a remote server via the 'remote' attribute. Otherwise the three Visual
Age tasks won't work when executing Ant from the command line.

that would be nice, but the truth is:
http://www.stacken.kth.se/~tom/manual/Integration/VAJAntTool.html#faq :

Q: I want to use the same buildfile both within Visual Age and from the command line using
my regular Ant environment. What do I need to be aware of?
A: The three Visual Age Tasks won't work when executing Ant from the command line. 


so I think you only can run these tasks within VAJ (but if there's really a possibility to
run these tasks from command line, i tried everything, let me know)

-----Urspr√ľngliche Nachricht-----
Von: Bui Dinh Chien [mailto:ChienBD@fsoft.com.vn]
Gesendet: Dienstag, 22. Juli 2003 14:45
An: Ant Users List
Betreff: Have you imported a source file into Visual Age for Java


Hi all,
Now I am trying to import a source file into VAJ but I can not. My VAJ
repository is local repository and my build file has followed lines

<vajimport project="HelloWorld" importSources="true"
remote="localhost:32767">
  <fileset dir="src">
    <include name="com/HelloWorld.java" />
  </fileset>
</vajimport>

And when I run Ant, this exception occured

BUILD FAILED
java.lang.NullPointerException
       at
org.apache.tools.ant.DirectoryScanner.getIncludedFiles(DirectoryScann
er.java:879)
       at
org.apache.tools.ant.taskdefs.optional.ide.VAJImport.importFileset(VA
JImport.java:236)
       at
org.apache.tools.ant.taskdefs.optional.ide.VAJImport.execute(VAJImpor
t.java:218)
       at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:272)
       at org.apache.tools.ant.Task.perform(Task.java:399)
       at org.apache.tools.ant.Target.execute(Target.java:319)
       at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
127)
       at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:117)
       at org.apache.tools.ant.Main.runBuild(Main.java:637)
       at org.apache.tools.ant.Main.startAnt(Main.java:217)
       at org.apache.tools.ant.launch.Launcher.run(Launcher.java:161)
       at org.apache.tools.ant.launch.Launcher.main(Launcher.java:85)

Total time: 1 second

Pls tell me why.

BTW, I don't know after I import a source file into VAJ, my source file
was compiled automatically or not, if you know pls teach me.

Thanks and best regards

Chienbui

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


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


Mime
View raw message