incubator-ivy-commits mailing list archives

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

    [ https://issues.apache.org/jira/browse/IVY-608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529882
] 

Jan Matèrne commented on IVY-608:
---------------------------------

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

{code:xml}
<project ...>

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

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

</project>
{code}

> Add support for importing environment variables
> -----------------------------------------------
>
>                 Key: IVY-608
>                 URL: https://issues.apache.org/jira/browse/IVY-608
>             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.


Mime
View raw message