We had to add copyright notices to a number of .mxml and .as files, and
wrote a short python script to do this. The only tricky part was that
you can't put an XML comment before the XML preamble (the '<?xml
version="1.0"...' part), but you can put it outside the root element. If
your script can recognize the copyright header it spits out, updating it
to a new wording is trivial (ours does not do this yet).
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-----Original Message-----
From: arieljake <arielj...@yahoo.com>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] copyright notices in code
Date: Wed, 21 Jan 2009 03:57:31 -0000

How do people add copyright notices to their code? When they create a
new file? 

What if the notice changes? Do they use ant to add it before
compilation to each file? 

Does compiling Flex remove the copyright notice? If so, should one
worry about having a copyright notice in the code for if/when it is
decompiled?

Anyone notice that comments are removed from an MXML file when it is
edited in design mode?

Any and all responses are invited!




 


Reply via email to