On Thu, Feb 21, 2008 at 3:41 PM, Foreman, Alex (IT) < [EMAIL PROTECTED]> wrote:
> Thanks for the reply. > > I did consider this but last time I tried a property subsitution in > IvyDE it did not work as its Ant that does the property subsitution. > > Ill retry again and update. > > If not Xavier, is there anyawy IvyDE could be updated and passed a > build.xml file and all its properties get set (from build.properties > files and any imported files eg library_build.xml) so that we get the > same behavior in both places? I think there's already an issue in JIRA about that, vote for it. You'll also see the recommended workaround which is to use a dedicated settings in IvyDE, which just load the properties and include your actual settings. Not the best solution but it works. Xavier > > > Many thanks, > > > Alex Foreman > Morgan Stanley | Technology > 20 Cabot Square | Canary Wharf | Floor 06 > London, E14 4QW > Phone: +44 20 7677-5732 > [EMAIL PROTECTED] > > -----Original Message----- > From: Maarten Coene [mailto:[EMAIL PROTECTED] > Sent: 20 February 2008 22:00 > To: [email protected] > Subject: Re: OS Specific dependencies > > I don't know if it will work, but maybe you could use a property in your > configuration mapping: > > conf="default->${os.type}" > > In Ant, you can set the value of the os.type property to "unix" or > "windows" depending on the platform you are on. > > Maarten > > ----- Original Message ---- > From: "Foreman, Alex (IT)" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Sent: Wednesday, February 20, 2008 2:40:33 PM > Subject: OS Specific dependencies > > I have a dependency X with a dll for use on windows and a so for use on > linux/*nix. > > If I have > > .... > conf runtime > Conf windows extends runtime > Conf unix extends runtime > .... > > Artifact name ="x" type="jar" conf="runtime" > Artifact name ="y" type="dll" conf="windows" > Artifact name ="z" type="so" conf="unix" > .... > > I can refer to which one I want at anyone time. > > However What I want is Ivy to automatically pick up this by its OS type. > > EG I am running in eclipse and want to run Ant from there I select the > dependecny and use conf='default->windows' > When I run this in unix I have to manually change the ivy.xml file. > > I should not need to do that. It should automatically be able to choose > which one I need. So the same ivy file works on any platform. > > The sos are not even downloadable in windows and the dlls are not > available in unix. > > Is there any solution to this? > Has anyone encountered this type of problem with JNI's and found a good > way around it? > > Many thanks, > > Alex Foreman > Morgan Stanley | Technology > 20 Cabot Square | Canary Wharf | Floor 06 London, E14 4QW > Phone: +44 20 7677-5732 > [EMAIL PROTECTED] > -------------------------------------------------------- > > NOTICE: If received in error, please destroy and notify sender. Sender > does not intend to waive confidentiality or privilege. Use of this email > is prohibited when received in error. > > > > > > > ________________________________________________________________________ > ____________ > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > http://tools.search.yahoo.com/newsearch/category.php?category=shopping > -------------------------------------------------------- > > NOTICE: If received in error, please destroy and notify sender. Sender > does not intend to waive confidentiality or privilege. Use of this email is > prohibited when received in error. > -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://ant.apache.org/ivy/ http://www.xoocode.org/
