ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject AW: AW: Prepend licence information to every source file
Date Fri, 17 Sep 2004 07:36:56 GMT
First you have to decide what you want to have inside your sourcetree:
with or withoug license headers.

a) with license header
   Like in the Ant project only source files with a valid license header are
   in the source tree (only a few exceptions in the sandbox). We use
Checkstyle to
   find sources whithout the required header.

b) without license header
   Provide the license file on a common place (e.g. <root>/license.txt) and
apply that
   to the files while creating the distribution. (using ConcatFilter like
you have done).
   Because the files for the distro are NOT the same as in the SCM, you are
working with
   temp files. Your scenario would be something like that:
       collect files:  copy with concatfilter from src dir to temp dir (e.g.
       compile:        inside temp dir (e.g. build/classes, build/testcases)
       test:           using junit
       javadoc:        using javadoc inside temp dir (e.g. build/api)
       jar:            using jar
       distro:         using zip including the jar, (temp)src and api


> -----Urspr√ľngliche Nachricht-----
> Von: Kannan V []
> Gesendet am: Freitag, 17. September 2004 09:15
> An: Ant Users List
> Betreff: Re: AW: Prepend licence information to every source file
> Hello:
>   I was not successfull to write  a target for prepending the 
> licence information.
> I was able to do the task by copying all the files to a temp 
> location and prepend
> the licence information using concat filter and then copying 
> back to original location.
> Can u pls guide how to write a target that will scan a 
> direcotry and prepend the licence 
> information in a text file to every *.java file ?
> thanks and regards,
> -- Kannan.
> -- 
> ___________________________________________________________
> Sign-up for Ads Free at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message