First of all: Thanx a lot for so many responses!
Among all the offered solutions the following two are the easiest to use
1. Use '$$' instead of '$', e.g.:
...
<include name="weblogic/rmi/internal/dgc/DGCClientImpl$$HeartBeat.class"/>
...
2. Define a special property, e.g.:
...
<property name="dollar" value="$"/>
...
<include
name="weblogic/rmi/internal/dgc/DGCClientImpl${dollar}HeartBeat.class"/>
...
Many, many thanx.
Bye,
Udo J�ttner
Research & Development
Engineering
IMPRESS SOFTWARE AG
Rotenburger Stra�e 21
30659 Hannover
Phone +49 (0)5 11 - 6 10 71 - 325
Fax +49 (0)5 11 - 6 10 71 - 320
Mobile +49 (0)1 63 - 5 37 10 22
mailto:[EMAIL PROTECTED]
http://www.IMPRESS.com
> -----Original Message-----
> From: Udo J�ttner [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 24, 2002 3:30 PM
> To: '[EMAIL PROTECTED]'
> Subject: Problem with '$' character in file names?!
>
>
> Hi there,
>
> actually I want to create a jar file by using a fileset which
> in turn is fed
> by a patternset. The situation is like below (ant 1.4.1 on
> SunOS 5.6 and JDK
> 1.3.1):
> ...
> <patternset id="include.weblogiccl">
> <include name="weblogic/rmi/internal/dgc/DGCServer.class"/>
> <include
> name="weblogic/rmi/internal/dgc/DGCClientImpl$HeartBeat.class"/>
> <include name="weblogic/rmi/internal/dgc/DGCReferenceCounter.class"/>
> <include name="weblogic/rmi/internal/dgc/DGCClientImpl.class"/>
> </patternset>
> ...
> <target name="weblogicSome">
> <jar jarfile="${dest.dir}/some.jar">
> <fileset dir="${tmp.dir}/some">
> <patternset refid="include.weblogiccl"/>
> </fileset>
> </jar>
> </target>
> ...
>
> Everything works fine, except for that the file with the '$'
> character in
> its name is NOT included into the jar file. Is there a known
> problem with
> any special characters? I also tried to quote the '$' by
> using '\' - like
> one does in UNIX shells.
> Any help is welcome. Thanx in advance.
>
>
> Bye,
>
> Udo J�ttner
> Research & Development
> Engineering
>
> IMPRESS SOFTWARE AG
> Rotenburger Stra�e 21
> 30659 Hannover
>
> Phone +49 (0)5 11 - 6 10 71 - 325
> Fax +49 (0)5 11 - 6 10 71 - 320
> Mobile +49 (0)1 63 - 5 37 10 22
>
> mailto:[EMAIL PROTECTED]
> http://www.IMPRESS.com
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>