I normally structure my Ant build scripts so that there is a master 
build.xml file, which contains only material relating to configuration 
and initialization, and most of the targets which do other work are in 
include files which are included into build.xml with an xml include 
statement, e.g.:

build.xml:
------
<?xml version="1.0"?>
... whatever, like comments
<!DOCTYPE project [
    <!ENTITY depValues SYSTEM "file:./proj/buildDepValues.xml">
    <!ENTITY commonTargets SYSTEM "file:./proj/buildTargets.xml">
    <!ENTITY unittests SYSTEM "file:./proj/buildTests.xml">
]>
... some xml text

  &depValues;
  &commonTargets;
  &unittests;

... some other xml text
-----

I find this very useful for organizing the build so things are separated 
by logical function. In any case, when include files are used in this 
fashion, IDEA only lists targets as available if they are in the master 
build.xml file, and ignores any targets from the include file.



_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to