Where do you have seen this reference exactly?
The Eclipse project loves to getting bug reports :)
And maybe we get another one from them [1,2].
Jan
[1] Eclipse Bug: Projects do not require the default attribute
https://bugs.eclipse.org/bugs/show_bug.cgi?id=81367
[2] Ant Bug: Project defaul
Maybe another process holds that file ...
Jan
> -Ursprüngliche Nachricht-
> Von: michael sorens [mailto:[EMAIL PROTECTED]
> Gesendet am: Freitag, 21. Januar 2005 19:48
> An: Ant Users List
> Betreff: Re: AW: ant access of java constants
>
> The errors I showed are from -debug. Without it
I want to run a java task with a specific list of file names as command-line arguments (typically
for each file), but I also want to run a check
with a fileset that is precisely the same list of files. How can this be done without having to
enumerate the same list in two places?
--
Still no luck. I'm including my code and build files to see if that
gives anyone ideas. If you comment out the import statement the main
method works fine.
Here's my main method...
public static void main(String[] args) {
BuildLogger logger = new DefaultLogger();
lo
You need to set ant.home Java property, not the environment variable, if
you want to launch ANT yourself.
- Alexey.
Andy Kriger wrote:
I am playing around with executing Ant targets from Java code.
Here's what I am trying to do (based on what I've seen in mailing list posts)...
public stati
A refinement of the 1st question - I figured out that I needed to add
a BuildLogger and that displayed the output of my echo task. If a
target has dependencies, do I have to call them manually before I call
the execute method? It does not appear that execute executes the
dependencies automatically.
Of course, always break it down.
Without the import statement, my code does work - I can get
information about targets. When I try to execute a target however (a
simple echo task), I don't see the output.
So 2 questions now:
1) How do I execute a target?
2) How do I process a build script that im
Andy,
what if You try to keep the buildfile as simple as possible? Then, step by
step You add more complexity like imports etc.
Maik
On Sunday 23 January 2005 20:51, Andy Kriger wrote:
>
> ...
>
>
> The project does have an import element . But the code does not even
> seem to be reaching th
...
The project does have an import element . But the code does not even
seem to be reaching that, being thrown off by the description element
(the first element under project).
On Sun, 23 Jan 2005 20:11:04 +0100, Maik Dobryn <[EMAIL PROTECTED]> wrote:
>
> Andy,
>
> are You sure about the pre
Andy,
are You sure about the presence of both, the base directory and the default
target definition in Your build.xml file?
For example:
Maik
On Sunday 23 January 2005 19:38, Andy Kriger wrote:
> I added in p.init() and now I get during the parse
>
> java.lang.NullPointerException
> at org
I added in p.init() and now I get during the parse
java.lang.NullPointerException
at org.apache.tools.ant.Task.perform(Task.java:373)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:133)
On Sun, 23 Jan 2005 18:58:40
Hi Andy,
On Sunday 23 January 2005 15:37, Andy Kriger wrote:
>
>public static void main(String[] args) {
> ProjectHelper ph = ProjectHelper.getProjectHelper();
> Project p = new Project();
try: p.init();
> ph.parse(p, new java.io.File("build.xml"));
> System.out.printl
I am playing around with executing Ant targets from Java code.
Here's what I am trying to do (based on what I've seen in mailing list posts)...
public static void main(String[] args) {
ProjectHelper ph = ProjectHelper.getProjectHelper();
Project p = new Proj
13 matches
Mail list logo