ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Scokart" <gscok...@gmail.com>
Subject Re: svn commit: r610562 - in /ant/ivy/core/trunk: ./ src/java/org/apache/ivy/ant/ src/java/org/apache/ivy/core/ src/java/org/apache/ivy/core/retrieve/ src/java/org/apache/ivy/core/settings/ test/java/org/apache/ivy/ant/
Date Thu, 10 Jan 2008 07:58:01 GMT
2008/1/9, maartenc@apache.org <maartenc@apache.org>:
>
> Author: maartenc
> Date: Wed Jan  9 13:02:58 2008
> New Revision: 610562
>
> URL: http://svn.apache.org/viewvc?rev=610562&view=rev
> Log:
> NEW: Add support for importing environment variables (IVY-608)
>
> Modified:
> ant/ivy/core/trunk/src/java/org/apache/ivy/core/IvyPatternHelper.java
> URL:
> http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/IvyPatternHelper.java?rev=610562&r1=610561&r2=610562&view=diff
>
> ==============================================================================
> --- ant/ivy/core/trunk/src/java/org/apache/ivy/core/IvyPatternHelper.java
> (original)
> +++ ant/ivy/core/trunk/src/java/org/apache/ivy/core/IvyPatternHelper.java
> Wed Jan  9 13:02:58 2008
> @@ -361,21 +362,6 @@
>          m.appendTail(sb);
>
>          return sb.toString();
> -    }
> -
> -    public static void main(String[] args) {
> -        String pattern =
> "[organisation]/[module]/build/archives/[type]s/"
> -                + "[artifact]-[revision].[ext]";
> -        System.out.println("pattern= " + pattern);
> -        System.out.println("resolved= "
> -                + substitute(pattern, "apache", "Test", "1.0", "test",
> "jar", "jar"));
> -
> -        Map variables = new HashMap();
> -        variables.put("test", "mytest");
> -        variables.put("test2", "${test}2");
> -        pattern = "${test} ${test2} ${nothing}";
> -        System.out.println("pattern= " + pattern);
> -        System.out.println("resolved= " + substituteVariables(pattern,
> variables));
>      }
>
>      /**
>
>
Shouldn't this be put in a unit test?

-- 
Gilles Scokart

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message