2008/1/9, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> 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

Reply via email to