Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ANT noob  RSS feed

Dennis Putnam
Ranch Hand
Posts: 377
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to create my first ANT build file. I am pretty close but a couple of things are not working right that I need help with.

1) When the jar file is created it is putting it in basedir from the project node rather than in destpath specified in the jar node. What am I doing wrong?

2) I am trying to include a serial number so can get a unique one with each build. Entry is a mystery to me as I don't know where it stores the previous number to increment on each build. I assume somewhere in the workspace. Anyway it seems to randomly restart at 1 during my testing. It must be something I'm doing but I don't know what so I can't stop. In any case I'd really like to be able to initialize that number then have it increment from there on.

3) In playing around with the serialnumber, I discovered that when the number is >999 the property is written with commas (e.g. 2,134). How do I eliminate those as I want just 2134.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!