[atg_tech:4904] CreateUnpackedEarTask

696 views
Skip to first unread message

vasu ayyagari

unread,
May 7, 2010, 6:36:26 AM5/7/10
to ATG_Tech
When I am trying to build getting the following eerror
class atg.appassembly.ant.CreateUnpackedEarTask cannot be found.
can any one suggest what might be the problem.?

--
You received this message because you are subscribed to the Google Groups "ATG_Tech" group.
To post to this group, send email to atg_...@googlegroups.com
To unsubscribe from this group, send email to atg_tech-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/atg_tech?hl=en

Suresh Choppara

unread,
May 7, 2010, 8:07:14 AM5/7/10
to atg_...@googlegroups.com
Which version of ant you are using ?

Shailendra Pateria

unread,
May 7, 2010, 10:05:45 AM5/7/10
to atg_...@googlegroups.com
do u have assembler.jar in your home lib :)
--
Best Regards,
Shailendra Pateria
ATG Specialist
Chicago, IL
Accenture US
+1773-979-9699

Srikumar C S

unread,
May 7, 2010, 1:10:09 PM5/7/10
to atg_...@googlegroups.com
you need to define a custom ant task, and specify the assembler.jar, as Shailendra mentioned, in the classpath. You can get around it without defining the custom ant task, but its good practice to define a custom task using the <taskdef> tag, specify the classpath there using the classpath attribute and you should be good to go..
 
Regards,
Sri

Shailendra Pateria

unread,
May 7, 2010, 2:36:33 PM5/7/10
to atg_...@googlegroups.com
For instance:

<target name="assemble-ear" description="Assembles Stand Alone ear file">
<taskdef name="atg-assemble-ear" classname="atg.appassembly.ant.CreateUnpackedEarTask">
<classpath refid="atgtask.classpath" />
</taskdef>

<taskdef name="atg-pack-ear" classname="atg.appassembly.ant.PackEarFileTask">
<classpath refid="atgtask.classpath" />
</taskdef>
<delete dir="${atg.root}/AssembledEARs/${atg.module.name}EAR"/>
  <atg-assemble-ear dynamoRoot="${atg.root}"
  dynamoModules="DafEar,DafEar.Admin,${atg.module.name}"
                destinationFile="${atg.root}/AssembledEARs/${atg.module.name}EAR"
                overwrite="true" 
                standalone="true"
                omitLicenses="true"
                displayName="${atg.module.name}"
                liveConfig="true"
                />

<delete dir="${atg.root}/AssembledEARs/${atg.module.name}EAR/atg_bootstrap.war/WEB-INF/ATG-INF/DAS/lib"/>
<delete dir="${atg.root}/AssembledEARs/${atg.module.name}EAR/atg_bootstrap.war/WEB-INF/ATG-INF/DPS/lib"/>
<delete dir="${atg.root}/AssembledEARs/${atg.module.name}EAR/atg_bootstrap.war/WEB-INF/ATG-INF/DSS/lib"/>
<delete dir="${atg.root}/AssembledEARs/${atg.module.name}EAR/atg_bootstrap.war/WEB-INF/ATG-INF/DCS/lib"/>
<delete dir="${atg.root}/AssembledEARs/${atg.module.name}EAR/atg_bootstrap.war/WEB-INF/ATG-INF/B2BCommerce/lib"/>
<delete dir="${atg.root}/AssembledEARs/${atg.module.name}EAR/atg_bootstrap.war/WEB-INF/ATG-INF/DAS-UI/lib"/>
<delete dir="${atg.root}/AssembledEARs/${atg.module.name}EAR/atg_bootstrap.war/WEB-INF/ATG-INF/home/servers/logs"/>
<delete dir="${atg.root}/AssembledEARs/${atg.module.name}EAR/atg_bootstrap.war/WEB-INF/ATG-INF/manuals/dynamo/"/>
 
 
  <atg-pack-ear sourceFile = "${atg.root}/AssembledEARs/${atg.module.name}EAR"
            destinationFile = "${server.root}/server/${server.name}/deploy/${atg.assembled.ear.name}" />
 
</target>

Scott Stirling

unread,
May 8, 2010, 6:18:50 PM5/8/10
to atg_...@googlegroups.com, atg_...@googlegroups.com
Don't use the Ant tasks. Just call runAssembler from an <exec> task and pass args in a build.properties. That way you have all the flexibility of the command line via Ant.

Just a sugestion,

Scott Stirling
Framingham, MA
Reply all
Reply to author
Forward
0 new messages