• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Separating ANT builts (include/exclude specific packages in final built)

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm a newbie with ANT and also to this forum. I have a ANT build.xml file in which I'm attempting to separate certain packages from different requirements of the built.

As an example, if I have a software which consists of packages A,B,C,D and E. I have customer whom are purchasing the software, but are not interested in the incorporating packages D and E. The customer is only interested in using packages A,B and C. At the same time, I have another customer who is interested in using the entire package of the software i.e. A ...E.

How do I implement conditional flags in ANT to ensure that certain components are not accessible by the customers if they are not being purchased?

From the attached is my build.xml, I'm attempting to exclude the following targets(listed below) so that users could not access them if they have not purchased the software with these features:
<target name="eventgui" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/troy/eventcollector/**"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
</target>

<target name="test_epk" depends="jar" description="test event collector known profile writer">
<java classname="com.adc.metrica.poller.profiles.EventCollectorASNsXmlWriter"
classpathref="project.class.path"
fork="true">
<classpath>
<pathelement location="jar/poller.jar"/>
</classpath>
</java>
<java classname="com.adc.metrica.poller.profiles.EventCollectorCustomersXmlWriter"
classpathref="project.class.path"
fork="true">
<classpath>
<pathelement location="jar/poller.jar"/>
</classpath>
</java>
<java classname="com.adc.metrica.poller.profiles.EventCollectorPortsXmlWriter"
classpathref="project.class.path"
fork="true">
<classpath>
<pathelement location="jar/poller.jar"/>
</classpath>
</java>
<java classname="com.adc.metrica.poller.profiles.EventCollectorProtocolsXmlWriter"
classpathref="project.class.path"
fork="true">
<classpath>
<pathelement location="jar/poller.jar"/>
</classpath>
</java>
<java classname="com.adc.metrica.poller.profiles.EventCollectorTCPFlagsXmlWriter"
classpathref="project.class.path"
fork="true">
<classpath>
<pathelement location="jar/poller.jar"/>
</classpath>
</java>
</target>


From the build.xml, the final built would produce 2 *.jar files i.e.
Poller_Admin_Installation_V2.0.jar
Poller_Client_Installation_V2.0.jar

Could anyone show me an example how I could implement conditional flags in ANT to prevent users from accessing certain packages within a software?

A complete listing of my build.xml ANT buit rules can be seen below:

Thanks
Danny

<project name="SNMP Gateway 2.0" default="test_dist" basedir=".">

<!-- ant build file for the SNMPGateway. See the build instruction document for
more information if you're unsure how to use it -->

<description>ant build for Poller</description>
<property name="JAVA_INSTALL" location="c:\java\1.3"/>
<property name="BASE_DIR" value="c:\snmpgw\tcrep\a2_0_0"/>
<property name="ZKM_JAR" value="c:\tools\zkm\ZKM.jar"/>
<property name="CLASSDIR" location="classes"/>
<property name="FLOW_CLASSDIR" location="flow_classes"/>
<property name="ROOT_SRCDIR" location=""/>
<property name="OBFUSCATE_DIR" value="${BASE_DIR}/obfuscated"/>
<property name="CLASSPATH" value=".;classes;${JAVA_INSTALL};lang;jar\AdventNetSnmp.jar;jar\jaxp-api.jar;jar\dom.jar;jar\sax.jar;jar\xalan.jar;jar\xercesImpl.jar;jar\xsltc.jar;jar\JimiProClasses.zip;jar\MibBrowser.jar"/>


<!-- set global debug properties -->
<property name="debug" value="on"/>
<property name="debuglevel" value="source,lines"/>
<property name="optimize" value="true"/>

<path id="project.class.path">
<pathelement path="${CLASSPATH}"/>
</path>

<target name="clean" description="clean created files">
<delete dir="${CLASSDIR}"/>
<delete dir="${FLOW_CLASSDIR}"/>
<delete dir="${OBFUSCATE_DIR}"/>
<delete file="UnJar.class"/>
<delete file="jar/poller.jar"/>
</target>

<target name="superclean" depends="clean">
<delete dir="log"/>
<delete dir="backups"/>
<delete dir="data"/>
<delete dir="tmp"/>
<delete dir="profiles\/populateProfiles"/>
<delete dir="profiles\/agentDiscoveryProfiles"/>
<delete file="Poller_Admin_Installation_V2.0.jar"/>
<delete file="Poller_Client_Installation_V2.0.jar"/>
</target>

<target name="init">
<tstamp/>
<mkdir dir="${CLASSDIR}"/>
</target>


<target name="utils" depends="init">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/utils/*.java"
excludes="**/utils/*Skel.java, **/utils/*Stub.java, **/troy/utils/*.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
<rmic base="${CLASSDIR}" includes="**/poller/utils/RemoteComponent.class"
sourcebase="${CLASSDIR}">
<classpath refid="project.class.path"/>
</rmic>
</target>


<target name="profiles" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/profiles/*.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
</target>

<target name="interfaces" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/componentregistry/*Interface.java,**/agentdiscovery/*Interface.java,
**/collector/*Interface.java,**/persister/*Interface.java,
**/administration/*Interface.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
</target>

<target name="daemon" depends="init,utils,profiles">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/startupdaemon/*.java"
excludes="**/startupdaemon/*Skel.java,**/startupdaemon/*Stub.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
<rmic base="${CLASSDIR}" includes="**/startupdaemon/Daemon.class"
sourcebase="${CLASSDIR}">
<classpath refid="project.class.path"/>
</rmic>
</target>

<target name="registry" depends="init,utils,profiles">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/componentregistry/*.java"
excludes="**/componentregistry/*Skel.java,**/componentregistry/*Stub.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
<rmic base="${CLASSDIR}" includes="**/componentregistry/ComponentRegistry.class"
sourcebase="${CLASSDIR}">
<classpath refid="project.class.path"/>
</rmic>
</target>

<target name="collector" depends="init,utils,profiles">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/collector/*.java"
excludes="**/collector/*Skel.java,**/collector/*Stub.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
<rmic base="${CLASSDIR}" includes="**/collector/Collector.class"
sourcebase="${CLASSDIR}">
<classpath refid="project.class.path"/>
</rmic>
</target>

<target name="activecollector" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/activecollector/*.java, **/activecollector/ciscoping/*.java,
**/activecollector/ciscosaa/*.java, **/activecollector/definitions/*.java,
**/activecollector/standardping/*.java"
excludes="**/activecollector/*Skel.java,**/activecollector/*Stub.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
<rmic base="${CLASSDIR}" includes="**/activecollector/ActiveCollector.class"
sourcebase="${CLASSDIR}">
<classpath refid="project.class.path"/>
</rmic>
</target>

<target name="eventcollector" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/eventcollector/**"
excludes="**/eventcollector/*Skel.java,**/eventcollector/*Stub.java,
**/eventcollector/export/*.java,**/eventcollector/syslog/*.java,
**/troy"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
<rmic base="${CLASSDIR}" includes="**/eventcollector/EventCollector.class"
sourcebase="${CLASSDIR}">
<classpath refid="project.class.path"/>
</rmic>
</target>

<target name="persister" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/persister/*.java"
excludes="**/persister/*Skel.java,**/persister/*Stub.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
<rmic base="${CLASSDIR}" includes="**/persister/Persister.class"
sourcebase="${CLASSDIR}">
<classpath refid="project.class.path"/>
</rmic>
</target>

<target name="admin" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/administration/*.java"
excludes="**/administration/*Skel.java,**/administration/*Stub.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
<rmic base="${CLASSDIR}"
includes="**/administration/*Manager.class,**/administration/Administrator.class"
sourcebase="${CLASSDIR}">
<classpath refid="project.class.path"/>
</rmic>
</target>

<target name="adminstub" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/adminstub/*.java"
excludes="**/adminstub/*_Skel.java,**/adminstub/*_Stub.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
<rmic base="${CLASSDIR}" includes="**/adminstub/AdminStub.class"
sourcebase="${CLASSDIR}">
<classpath refid="project.class.path"/>
</rmic>
</target>

<target name="agentdiscovery" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/agentdiscovery/*.java"
excludes="**/agentdiscovery/*Skel.java,**/agentdiscovery/*Stub.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
<rmic base="${CLASSDIR}" includes="**/agentdiscovery/DiscoveryManager.class"
sourcebase="${CLASSDIR}">
<classpath refid="project.class.path"/>
</rmic>
</target>


<target name="trace" depends="init" description="build trace component">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/trace/*java,**/trace/gui/*java"
excludes="**/trace/*Skel.java,**/trace/*Stub.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
<rmic base="${CLASSDIR}" includes="**/Trace.class" sourcebase="${CLASSDIR}">
<classpath refid="project.class.path"/>
</rmic>
</target>

<target name="cmd" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/cmdline/*.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
</target>

<target name="deploy" depends="init" description="deploy manager">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/deploymanager/*java"
excludes="**/deploymanager/*Skel.java,**/deploymanager/*Stub.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
<rmic base="${CLASSDIR}" includes="**/deploymanager/DeployManager.class"
sourcebase="${CLASSDIR}">
<classpath refid="project.class.path"/>
</rmic>
</target>

<target name="gui" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/ui/*.java,**/plaf/*.java,**/thirdparty/*.java,
**/thirdparty/trove/*.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
</target>


<target name="activegui" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/troy/active/*.java, **/troy/active/**"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
</target>

<target name="saagui" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/troy/saa/*.java, **/troy/saa/**"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
</target>

<target name="eventgui" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/troy/eventcollector/**"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
</target>

<target name="knowngui" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/troy/knownprofiles/**"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
</target>


<target name="troy" depends="init,utils,gui,activegui,saagui,trees,eventgui,knowngui">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/troy/allProfilesView/*.java,**/troy/*.java,
**/troy/system/*.java, **/troy/images/ImageBank.java,
**/troy/discover/*.java, **/troy/agents/*.java,
**/troy/help/*.java, **/troy/log/*.java,
**/troy/prof/*.java, **/troy/types/*.java,
**/troy/utils/*.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
</target>

<target name="trees" depends="init,utils">
<javac srcdir="${ROOT_SRCDIR}" destdir="${CLASSDIR}"
includes="**/troy/agentTrees/*.java,**/troy/*.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
</target>

<!-- Build all the java source files within each component -->
<target name="all" depends="init,utils,trace,interfaces,profiles,admin,
adminstub,deploy,daemon,registry,persister,
collector,activecollector,eventcollector,
agentdiscovery, cmd,
troy">
<javac srcdir="${ROOT_SRCDIR}" destdir="${ROOT_SRCDIR}"
includes="UnJar.java"
optimize="${optimize}"
debug="${debug}"
debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
</target>

<!-- Generates the poller.jar file, containing the SNMP Gateway -->
<target name="jar" depends="all">
<copy todir="${CLASSDIR}/com/adc/metrica/ui">
<fileset dir="./com/adc/metrica/ui" includes="*.gif"/>
</copy>
<copy todir="${CLASSDIR}/com/adc/metrica/trace/gui">
<fileset dir="./com/adc/metrica/trace/gui" includes="*.gif"/>
</copy>
<copy todir="${CLASSDIR}/com/adc/metrica/troy/images">
<fileset dir="./com/adc/metrica/troy/images"
includes="*.gif,*.jpg"/>
</copy>
<mkdir dir="${CLASSDIR}/com/adc/metrica/plaf/icons"/>
<copy todir="${CLASSDIR}/com/adc/metrica/plaf/icons">
<fileset dir="./com/adc/metrica/plaf/icons"
includes="*.gif,*.jpg"/>
</copy>
<jar basedir="${CLASSDIR}" destfile="jar/poller.jar"
includes="com/adc/metrica/**"/>
</target>

<!-- Target for building for test (without obfuscation) -->
<target name="test_dist" depends="jar, flowrecorder" description="generate test release">
<antcall target="generate_dist"/>
</target>

<target name="product_dist" depends="jar, flowrecorder" description="generate test release">
<antcall target="obfuscate"/>
<antcall target="generate_dist"/>
</target>

<!-- Target for obfuscating poller.jar file -->
<target name="obfuscate" depends="jar" description="obfuscate poller.jar">
<delete dir="${OBFUSCATE_DIR}"/>
<exec dir="${BASE_DIR}"
executable="java">
<arg line="-Xms128M -Xmx256M -jar ${ZKM_JAR} code_obfuscation\zkm_config.cfg"/>
</exec>
<copy file="${OBFUSCATE_DIR}/\.jar" todir="jar"/>
</target>

<!-- generate the admin and client jar files for general distribution -->
<target name="generate_dist" description="generate tarball" >
<mkdir dir="log"/>
<mkdir dir="backups"/>
<mkdir dir="data"/>
<mkdir dir="tmp"/>
<mkdir dir="profiles\/populatedProfiles"/>
<mkdir dir="profiles\/agentDiscoveryProfiles"/>
<jar basedir="./" manifest="mainClass" destfile="Poller_Admin_Installation_V2.0.jar"
includes="setup.csh,setup.sh,UnJar.class,backups/*,bin/*,data,help/**,jar/*,lang/**,log,mibs/*,profiles/**,properties/*,tmp,utils/**">
</jar>
<jar basedir="./" manifest="mainClass" destfile="Poller_Client_Installation_V2.0.jar"
includes="setup.csh,setup.sh,UnJar.class,bin/*,data,help/**,jar/*,lang/**,log,tmp">
</jar>
</target>

<!-- Build the flowRecorder tool used in debugging the netflow flows-->
<target name="flowrecorder">
<mkdir dir="${FLOW_CLASSDIR}"/>
<javac srcdir="${ROOT_SRCDIR}" destdir="${FLOW_CLASSDIR}"
includes="**/flowrecorder/*,**/metrica/ui/*,**/metrica/plaf/*,
**/metrica/utils/*,**/metrica/poller/utils/*"
optimize="${optimize}"
debug="${debug}" debuglevel="${debuglevel}">
<classpath refid="project.class.path"/>
</javac>
<copy todir="${FLOW_CLASSDIR}/com/adc/metrica/ui">
<fileset dir="./com/adc/metrica/ui" includes="adc.gif,adc32.gif"/>
</copy>
<copy todir="${FLOW_CLASSDIR}/com/adc/metrica/tools/flowrecorder">
<fileset dir="./com/adc/metrica/troy/images"
includes="play.gif,pause.gif,stop.gif"/>
</copy>
<mkdir dir="${FLOW_CLASSDIR}/com/adc/metrica/plaf/icons"/>
<copy todir="${FLOW_CLASSDIR}/com/adc/metrica/plaf/icons">
<fileset dir="./com/adc/metrica/plaf/icons"
includes="*.gif,*.jpg"/>
</copy>
<copy todir="${FLOW_CLASSDIR}/com/adc/metrica/tools/flowrecorder">
<fileset dir="./com/adc/metrica/ui"
includes="adc.gif"/>
</copy>
<jar basedir="${FLOW_CLASSDIR}" destfile="jar/flowrecorder.jar"
includes="com/adc/metrica/**">
<manifest>
<attribute name="Main-Class"
value="com.adc.metrica.tools.flowrecorder.RecorderApp"/>
</manifest>
</jar>
</target>

<!-- Convert all unix files from dos2unix. When the files are copied out
from TrueChange by default they will be in dos format.
This is a utility I used to convert them to unix format
-->
<target name="dos2unix">
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="utils\inventory\generateProfile.sh utils\inventory\generateProfile.sh"/>
</exec>
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="utils\inventory\inventoryFunctions.sh utils\inventory\inventoryFunctions.sh"/>
</exec>
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="setup.sh setup.sh"/>
</exec>
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="setup.csh setup.csh"/>
</exec>
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="bin\checkAdmin.sh bin\checkAdmin.sh"/>
</exec>
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="bin\checkComp.sh bin\checkComp.sh"/>
</exec>
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="bin\checkDaemon.sh bin\checkDaemon.sh"/>
</exec>
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="bin\checkVersion.sh bin\checkVersion.sh"/>
</exec>
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="bin\CmdControl.sh bin\CmdControl.sh"/>
</exec>
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="bin\removeAll.sh bin\removeAll.sh"/>
</exec>
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="bin\startAdmin.sh bin\startAdmin.sh"/>
</exec>
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="bin\startDaemon.sh bin\startDaemon.sh"/>
</exec>
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="bin\startGUI.sh bin\startGUI.sh"/>
</exec>
<exec dir="./" executable="c:\tools\local\dos2ux\bin\dos2unix.bat">
<arg line="bin\startTrace.sh bin\startTrace.sh"/>
</exec>
</target>


<!--
ALL entries below here are used for unit testing and are not part
of the build process
-->
<target name="test" depends="jar" description="copy to test area">
<copy file="jar/poller.jar" todir="../../test_env/a200/jar"/>
<copy file="lang/guiMessages_en_GB.properties"
todir="../../test_env/a200/lang"/>
</target>

<!-- The writer contains a main class which reads/writes event collector profiles -->
<target name="test_epw" depends="jar" description="test event collector profile writer">
<java classname="com.adc.metrica.poller.profiles.ProfileXmlWriter"
classpathref="project.class.path"
fork="true">
<classpath>
<pathelement location="jar/poller.jar"/>
</classpath>
</java>
</target>

<!-- Test all event collector known profiles -->
<target name="test_epk" depends="jar" description="test event collector known profile writer">
<java classname="com.adc.metrica.poller.profiles.EventCollectorASNsXmlWriter"
classpathref="project.class.path"
fork="true">
<classpath>
<pathelement location="jar/poller.jar"/>
</classpath>
</java>
<java classname="com.adc.metrica.poller.profiles.EventCollectorCustomersXmlWriter"
classpathref="project.class.path"
fork="true">
<classpath>
<pathelement location="jar/poller.jar"/>
</classpath>
</java>
<java classname="com.adc.metrica.poller.profiles.EventCollectorPortsXmlWriter"
classpathref="project.class.path"
fork="true">
<classpath>
<pathelement location="jar/poller.jar"/>
</classpath>
</java>
<java classname="com.adc.metrica.poller.profiles.EventCollectorProtocolsXmlWriter"
classpathref="project.class.path"
fork="true">
<classpath>
<pathelement location="jar/poller.jar"/>
</classpath>
</java>
<java classname="com.adc.metrica.poller.profiles.EventCollectorTCPFlagsXmlWriter"
classpathref="project.class.path"
fork="true">
<classpath>
<pathelement location="jar/poller.jar"/>
</classpath>
</java>
</target>

<target name="testgui" depends="test">
<exec dir="c:\snmpgw\test_env\a200\"
executable="c:\snmpgw\test_env\a200\bin\startGUI.bat">
<arg line="BZLTG0J 1099"/>
</exec>
</target>
<target name="rungui" >
<exec dir="c:\snmpgw\test_env\a200\"
executable="c:\snmpgw\test_env\a200\bin\startGUI.bat">
<arg line="BZLTG0J 1099"/>
</exec>
</target>
</project>
 
Hey! You're stepping on my hand! Help me tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic