incubator-ivy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne (JIRA) <>
Subject [jira] Commented: (IVY-608) Add support for importing environment variables
Date Mon, 24 Sep 2007 14:53:50 GMT


Jan Matèrne commented on IVY-608:

And with splitting into several classes you could use conditional compilation like in Ant.

<project ...>

  <selector id="needs.jdk1.5+">
      <filename name="**/Java5EnvLoader*"/>
      <!-- maybe more -->
  <available property="jdk1.5+" classname=""/>

  <target name="build" ...>
      <javac ...>
          <selector id="conditional-patterns">
                  <selector refid="needs.jdk1.5+" unless="jdk1.5+"/>


> Add support for importing environment variables
> -----------------------------------------------
>                 Key: IVY-608
>                 URL:
>             Project: Ivy
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Jing Xue
>            Priority: Minor
>         Attachments: import-env-1.patch
> Ant supports importing environment variables into properties via the <properties environment="env"
/> task.  If an ivysettings.xml relies on an environment variable, the lack of support
for this feature in Ivy makes it difficult to reuse the same ivysettings.xml in a non-Ant
environment, such as in IvyDE.  I'm submitting a patch to add the support for JDK 1.5+. This
implementation will throw an exception when running in lesser JVMs.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message