This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant Build Successful but neither jar file nor build folder created ?

 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am building a project using only 1 file to test for Ant.

This is my code:



But i don't see any output in the director or even directory created.

Here is successful build output:

Buildfile: C:\Workspace_log4j\testLog4j\build.xml
BUILD SUCCESSFUL
Total time: 63 milliseconds


Also i am attaching the directory structure of the Project.

Ant_Build.jpg
Ant Build Dir Structure
[Thumbnail for Ant_Build.jpg]
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What target are you running? I don't see any default target in your build file. Also the output you posted is just the last couple of lines. Please post the rest of the relevant output.

 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Buildfile: C:\Workspace_log4j\testLog4j\build.xml
BUILD SUCCESSFUL
Total time: 78 milliseconds


This is the complete output here from console.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, what target are you running? Maybe try running a target. Or setting a default target.
 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think i am using the defult target !
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which is...?
 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know exacty and it could be the workspace_xyz and then the build folder.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*Ant* target. What task do you think is running? Have you trying specifying one?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no default target in ant and you have not specified one in the <project> statement, so if you do not specify a target on the command line then ant will do nothing. And as it reported, is was successful at doing nothing.
 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



the above code is working.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic