gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] Auto-generated source files


From: Mark A. Flacy
Subject: [Gnu-arch-users] Auto-generated source files
Date: Mon, 13 Oct 2003 03:23:44 -0500

>>>>> "Thomas" == Thomas Zander <address@hidden> writes:
Thomas> 
Thomas> Question;

Thomas> In my (java) tool I generate source files from
Thomas> graphics-designer-files.  These go in the same dir as other source
Thomas> files, and into the normal build process.  

Well, that's the start of your problems right there.  We don't do that 
at work and we're a ClearCase shop.

Write the autogenerated stuff to another directory and add that directory
to your javac source path via the "-sourcepath <path>" option.

(If you also write your .class files in the same directories as your source
 files, that's another bad idea.  Use the "-d <directory>" option to write
 them somewhere and add that directory to the front of your 
 "-classpath <path>"  option.)

Thomas> The result is that I get
Thomas> warnings at commit from tla about source files that don't have a
Thomas> tag, or about them not been added (dependant on tagging-method).
Thomas> 
Thomas> Is there any way I can mark a couple of files as junk files,
Thomas> without editing the regular expressions in the =tagging-method
Thomas> file?

Not to my knowledge.  There was discussion about a tagging method that
might work better under your constraints.

Thomas> Or, as an alternative, can you provide better regular expression
Thomas> ideas that the following will mark files as junk instead?
Thomas> 
Thomas> The source file is
Thomas>     bla.ui
Thomas> the autogenerated file is
Thomas>     bla.java

Thomas> Hence; with the presence of a .ui, the .java should be
Thomas> ignored. (and only then)

I haven't looked that closely at that part of the code in a long while, but
I do believe that Tom's code only looks at the file names independently of
each other.  I doubt that you would be able to apply such conditional
matching. 

-- 
 Mark A. Flacy
 Any opinions expressed above are my own.  Any facts expressed above
 are, ummm, facts.
"Somewhere, some day, someone will help us to survive.
 They're gonna show us Hell and bring us back alive."
 -- B.O.C.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]