+1 from a non-commiter :-)
I miss the <property environment="env"/> statement.
I played a little bit:
- on my machine the path is stored in ${env.Path} (mmmmhh)
so I added <property name="env.PATH" value="${env.Path}"/> after
the environment-statement
- cvs.exe is on my path. But I can�t get the cvs host (firewall blocks
that port). So it is not possible to create the diff in that way :-(
createpatch:
[cvs] Using cvs passfile: C:\Profile\mat\.cvspass
[cvs] cvs diff: CVSROOT (":pserver:[EMAIL PROTECTED]:dummyRoot")
[cvs] cvs diff: requires a path spec
[cvs] cvs diff:
:pserver[;keyword=value...]:[username[:[EMAIL PROTECTED]:port][:]/path
[cvs] cvs [diff aborted]: Bad CVSROOT.
The C:\Profile\mat\.cvspass contains the line
:pserver:[EMAIL PROTECTED]:/home/cvspublic Ay=0=h<Z
I think I have to do my patches with cvsgrab and mssys� diff ...
Jan
> -----Urspr�ngliche Nachricht-----
> Von: Magesh Umasankar [mailto:[EMAIL PROTECTED]
> Gesendet am: Dienstag, 3. Juni 2003 21:07
> An: Ant Developers List
> Betreff: Ant file to create patch file
>
> Creating patches to submit to Ant can be standardized as well
> as made easier with the following patch.xml file. If you
> consider this useful, I will add it to the repository. Please
> comment.
>
> <project name="create-patch" default="patchpackage" basedir=".">
> <property name="patch.package" value="patch.tar.gz"/>
> <property name="patch.file" value="patch.txt"/>
>
> <condition property="cvs.found">
> <or>
> <available file="cvs" filepath="${env.PATH}"/>
> <available file="cvs.exe" filepath="${env.PATH}"/>
> <available file="cvs.exe" filepath="${env.Path}"/>
> </or>
> </condition>
>
> <target name="createpatch" if="cvs.found">
> <cvs command="-q diff -u" output="${patch.file}"/>
> </target>
>
> <target name="newfiles" depends="createpatch">
> <delete file="${patch.package}"/>
> <cvs command="-q diff -N" output="${patch.file}.tmp"/>
> <replace file="${patch.file}.tmp" token="? " value=""/>
> </target>
>
> <target name="patchpackage" depends="newfiles">
> <tar basedir="${basedir}"
> tarfile="${patch.package}"
> compression="gzip"
> includesfile="${patch.file}.tmp"
> excludes="${patch.file}.tmp"/>
> <delete file="${patch.file}.tmp"/>
> </target>
> </project>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>