ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@apache.org>
Subject Re: Ant file to create patch file
Date Wed, 04 Jun 2003 11:30:59 GMT
Are you able to execute a "cvs diff -u" from the command
line without any issues?  I suspect not.

----- Original Message -----
From: <Jan.Materne@rzf.fin-nrw.de>
To: <dev@ant.apache.org>
Sent: Wednesday, June 04, 2003 1:27 AM
Subject: AW: Ant file to create patch file


+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:anonymous@dummyHost:dummyRoot")
      [cvs] cvs diff: requires a path spec
      [cvs] cvs diff:
:pserver[;keyword=value...]:[username[:password]@]host[:port][:]/path
      [cvs] cvs [diff aborted]: Bad CVSROOT.

The C:\Profile\mat\.cvspass contains the line
:pserver:anoncvs@cvs.apache.org:/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:umagesh@apache.org]
> 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: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>



Mime
View raw message