You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by "Hiller, Dean (Contractor)" <de...@broadridge.com> on 2010/12/09 18:21:46 UTC

ivy-settings.xml file in IvyDE (how to do relative reference?)

I am trying to make it so new developers can checkout and run without
having to setup anything(including ivysettings.xml).  I tried
file:./ivy.xml and workspace way as well, but none of that works.  Is
there a way to setup ivysettings.xml file so it is in the project and
relative referenced from base of project?  Much like the ivy.xml file
can do!!!!!!

 

Thanks,

Dean

 

 


This message and any attachments are intended only for the use of the addressee and
may contain information that is privileged and confidential. If the reader of the 
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.


Re: ivy-settings.xml file in IvyDE (how to do relative reference?)

Posted by Kirby Files <kf...@masergy.com>.
Hiller, Dean (Contractor) wrote on 12/09/2010 12:21 PM:
> I am trying to make it so new developers can checkout and run without
> having to setup anything(including ivysettings.xml).  I tried
> file:./ivy.xml and workspace way as well, but none of that works.  Is
> there a way to setup ivysettings.xml file so it is in the project and
> relative referenced from base of project?  Much like the ivy.xml file
> can do!!!!!!

I use ivy:settings to refer to an ivysettings.xml url on our main repo:

<ivy:settings id="ivy.instance"
       url="${ivy.settings.url}"
       />

Then you can just set the url in your build.properties, and in the 
Eclipse Ivy preferences.

Thanks,
---
Kirby Files
Software Architect
Masergy Communications
kfiles@masergy.com

Re: ivy-settings.xml file in IvyDE (how to do relative reference?)

Posted by Levi Purvis <lp...@gmail.com>.
Yep, but the only way I could figure out was using Eclipse-specific
settings for IvyDE.  In other words, you have to use one mechanism for
IvyDE, and a different mechanism for your command-line build.  Anyway:

 * Right-click the "ivy.xml" classpath container in Eclipse (you can
see it in e.g. Package Explorer).
 * Select "Properties" from the context menu.
 * Select the "Settings" tab.
 * Select "Enable project specific settings".
 * Click the "Workspace" button under "Ivy settings path".
 * Select the path to your ivysettings.xml file anywhere in your
workspace (it can cross projects).
 * Click "Ok".

Repeat for every project.  It looks like the settings are stored in
your .classpath file as parameters on the IVYDE_CONTAINER.

I have all projects referencing a single ivysettings.xml file in a
common "build" project.  Everything works automatically on checkout.
You can use the ivy.settings.dir property to derive the directory path
and bootstrap other properties which refer to paths.

On Thu, Dec 9, 2010 at 12:21 PM, Hiller, Dean  (Contractor)
<de...@broadridge.com> wrote:
> I am trying to make it so new developers can checkout and run without
> having to setup anything(including ivysettings.xml).  I tried
> file:./ivy.xml and workspace way as well, but none of that works.  Is
> there a way to setup ivysettings.xml file so it is in the project and
> relative referenced from base of project?  Much like the ivy.xml file
> can do!!!!!!

RE: ivy-settings.xml file in IvyDE (how to do relative reference?)

Posted by "Hiller, Dean (Contractor)" <de...@broadridge.com>.
Any way to avoid having every developer to have to setup an eclipse variable?

I have been down that route with tools like WTP until they fixed it in more recent versions so people can checkout projects and work without always doing more setup.

Thanks,
Dean

-----Original Message-----
From: Nicolas Lalevée [mailto:nicolas.lalevee@hibnet.org] 
Sent: Friday, December 10, 2010 5:43 AM
To: ivy-user@ant.apache.org
Subject: Re: ivy-settings.xml file in IvyDE (how to do relative reference?)


Le 9 déc. 2010 à 18:21, Hiller, Dean (Contractor) a écrit :

> I am trying to make it so new developers can checkout and run without
> having to setup anything(including ivysettings.xml).  I tried
> file:./ivy.xml and workspace way as well, but none of that works.  Is
> there a way to setup ivysettings.xml file so it is in the project and
> relative referenced from base of project?  Much like the ivy.xml file
> can do!!!!!!

You should use the Eclipse variables:
http://ant.apache.org/ivy/ivyde/history/latest-milestone/eclipsevar.html

Nicolas

This message and any attachments are intended only for the use of the addressee and
may contain information that is privileged and confidential. If the reader of the 
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.


RE: ivy-settings.xml file in IvyDE (how to do relative reference?)

Posted by "Hiller, Dean (Contractor)" <de...@broadridge.com>.
Ohhhhh...oops...totally different that the old eclipse env variables!!!
Thanks,
Dean

-----Original Message-----
From: Nicolas Lalevée [mailto:nicolas.lalevee@hibnet.org] 
Sent: Friday, December 10, 2010 5:43 AM
To: ivy-user@ant.apache.org
Subject: Re: ivy-settings.xml file in IvyDE (how to do relative reference?)


Le 9 déc. 2010 à 18:21, Hiller, Dean (Contractor) a écrit :

> I am trying to make it so new developers can checkout and run without
> having to setup anything(including ivysettings.xml).  I tried
> file:./ivy.xml and workspace way as well, but none of that works.  Is
> there a way to setup ivysettings.xml file so it is in the project and
> relative referenced from base of project?  Much like the ivy.xml file
> can do!!!!!!

You should use the Eclipse variables:
http://ant.apache.org/ivy/ivyde/history/latest-milestone/eclipsevar.html

Nicolas

This message and any attachments are intended only for the use of the addressee and
may contain information that is privileged and confidential. If the reader of the 
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.


Re: ivy-settings.xml file in IvyDE (how to do relative reference?)

Posted by Nicolas Lalevée <ni...@hibnet.org>.
Le 9 déc. 2010 à 18:21, Hiller, Dean (Contractor) a écrit :

> I am trying to make it so new developers can checkout and run without
> having to setup anything(including ivysettings.xml).  I tried
> file:./ivy.xml and workspace way as well, but none of that works.  Is
> there a way to setup ivysettings.xml file so it is in the project and
> relative referenced from base of project?  Much like the ivy.xml file
> can do!!!!!!

You should use the Eclipse variables:
http://ant.apache.org/ivy/ivyde/history/latest-milestone/eclipsevar.html

Nicolas