You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "King_Henree@yahoo.com" <ki...@yahoo.com> on 2004/02/24 14:30:33 UTC

Can Maven use dashes in variable interpolation?

I have a build.properties file with various properties
setup such as:

example-src.dir=example-src

In my maven.xml file I have:

<goal name="my-goal">
  <mkdir dir="${example-src.dir}"/>
</goal>

When I invoke maven with "maven my-goal" it creates a
"0" directory instead of an "example-src" directory. 
If I change the dash ("-") to an underscore ("_"),
like "example_src", it works just fine.  Is this a
bug?  Ant allows the usage of dashes.

Thanks.

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Can Maven use dashes in variable interpolation?

Posted by di...@multitask.com.au.
It's a known feechur.
--
dIon Gillard, Multitask Consulting



"King_Henree@yahoo.com" <ki...@yahoo.com> wrote on 25/02/2004 
12:31:51 AM:

> BTW, I am using Maven 1.0-rc1 on Windows 2000.
> 
> Thanks.
> 
> --- "King_Henree@yahoo.com" <ki...@yahoo.com>
> wrote:
> > I have a build.properties file with various
> > properties
> > setup such as:
> > 
> > example-src.dir=example-src
> > 
> > In my maven.xml file I have:
> > 
> > <goal name="my-goal">
> >   <mkdir dir="${example-src.dir}"/>
> > </goal>
> > 
> > When I invoke maven with "maven my-goal" it creates
> > a
> > "0" directory instead of an "example-src" directory.
> > 
> > If I change the dash ("-") to an underscore ("_"),
> > like "example_src", it works just fine.  Is this a
> > bug?  Ant allows the usage of dashes.
> > 
> > Thanks.
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail SpamGuard - Read only the mail you want.
> > http://antispam.yahoo.com/tools
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@maven.apache.org
> > For additional commands, e-mail:
> > users-help@maven.apache.org
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.
> http://antispam.yahoo.com/tools
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

Re: Can Maven use dashes in variable interpolation?

Posted by "King_Henree@yahoo.com" <ki...@yahoo.com>.
BTW, I am using Maven 1.0-rc1 on Windows 2000.

Thanks.

--- "King_Henree@yahoo.com" <ki...@yahoo.com>
wrote:
> I have a build.properties file with various
> properties
> setup such as:
> 
> example-src.dir=example-src
> 
> In my maven.xml file I have:
> 
> <goal name="my-goal">
>   <mkdir dir="${example-src.dir}"/>
> </goal>
> 
> When I invoke maven with "maven my-goal" it creates
> a
> "0" directory instead of an "example-src" directory.
> 
> If I change the dash ("-") to an underscore ("_"),
> like "example_src", it works just fine.  Is this a
> bug?  Ant allows the usage of dashes.
> 
> Thanks.
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.
> http://antispam.yahoo.com/tools
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org