?
Solved

How to use the java attrib in build.xml

Posted on 2003-02-22
3
Medium Priority
?
208 Views
Last Modified: 2010-04-21
I would like to use this command in my build.xml

java com.org.rr.SDK.Tools.ConsoleParcelBuilder -f PTTService.parceldef -o PTTService.parcel

here PTTService.parceldef is written in xml and after which it gives me PTTService.parcel file which i use in my Makefile but now i want to use this command in my build.xml file also the following command follows the above command in my Makefile

java com.org.rr.SDK.Tools.ConsoleDistribBuilder -f PTTService.distribdef -o PTTService.distrib

this command is after above parcel command .

so can any one give me solution i will be thanful to you.
thanx in advance

rgds
pritesh
0
Comment
Question by:saharey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Accepted Solution

by:
mglxxx earned 760 total points
ID: 8025670
Do you mean something like this?

<target name="consoleParcel">
  <java classname="com.org.rr.SDK.Tools.ConsoleParcelBuilder" >
    <arg line="-f PTTService.parceldef -o PTTService.parcel" />
  <!-- the classpath is optional, but you might need it
   -->
    <classpath>
      <pathelement location="/some/dir/something.jar" />
    </classpath>
  </java>
</target>

<target name="consoleDistrib"
        depends="consoleParcel">
  <java classname="com.org.rr.SDK.Tools.ConsoleDistribBuilder" >
    <arg line="-f PTTService.distribdef -o PTTService.distrib" />
  <!-- the classpath is optional, but you might need it
   -->
    <classpath>
      <pathelement location="/some/dir/something.jar" />
    </classpath>
  </java>
</target>
0
 
LVL 20

Expert Comment

by:jmcg
ID: 9983466
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: mglxxx {http:#8025670}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer
0

Featured Post

How to Create Failover DNS Record Sets in Route 53

Route 53 has the ability to easily configure DNS record sets specifically for failover scenarios. These failover record sets can be configured to failover to full-blown deployments in other regions or to a static HTML page that informs your customers of the issue.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month9 days, 1 hour left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question