Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

ANT problem

Thread view: 
manny - 27 Jul 2006 17:58 GMT
Hi all

I'm using single ANT script to compile many .net projects.
One of the projects in my build requires compilation under framework
2.0 (the rest is 1.1).
I want to change my script so that in particular moment , before
calling csc task to compile 2.0 project , env var PATH is set by
running proper vsvars32.bat. After compilation , I want to change env
var PATH (running another vsvars32.bat) so it points back to framework
1.1 directories.

NOTE that vsvars32.bat is a file which sets PATH variable but only for
console session which 'called' the file

I cannot use NANT. I have to achieve this with ANT, and what is more
important ,all projects must compile with calling single ANT script.  I
tried running exec task with batch file changing PATH variable but
changes are not stored , and csc is using 'old' paths (pointing .net
1.1)

regards
Wojtek
rhino_redux@yahoo.ca - 27 Jul 2006 19:33 GMT
> Hi all
>
[quoted text clipped - 15 lines]
> changes are not stored , and csc is using 'old' paths (pointing .net
> 1.1)

I think you would do better to ask this question on the Ant user
mailing list than here. There are certainly Ant users on this newsgroup
but this is primarily a Java newsgroup and the specialists at the Ant
user mailing list are probably the best place to ask your question.

You can subscribe to that mailing list from this page:
http://ant.apache.org/mail.html.
The volume of traffic on this list is fairly low - a dozen or so
messages a day - but the quality is very high and you often get help
within a few hours of asking your question.

--
Rhino


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.