• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Running ant from within WebSphere

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

How do I pick up my WebSphere's project's settings within my ant script? I want the Project's Build Path and Libraries to be available within my ant script.

The reason for this is that the Project is a J2EE project and references com.ibm.websphere.naming.WsnInitialContextFactory (Websphere specific). I don't really want to explicitly add the Jars to the ant classpath since there are a large number and WebSphere should know the dependencies already.

The ant script is located within the J2EE project and I don't really want to have to maintain two sets of references. Do I just have the wrong idea about how projects and ant scripts relate?

Any help / advice / pointers greatly appreciated,
Darren
[ September 14, 2005: Message edited by: Darren Edds ]
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Darren,
Welcome to JavaRanch!

In RAD 6, this happens automatically. The .classpath file and the Ant build.xml synch up through the IDE. In WSAD 4 and 5, there isn't an easy way to do it. You need to parse the file and read in the variables.

Barry Searle has some articles on WSAD and Ant that are useful too.

While this question borders on IDEs, I think it would be more appropriate in the Ant forum. I'll move it there for you.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic