Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6050989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:45:07+00:00 2026-05-23T07:45:07+00:00

I have a little ant script which should create 3 tar files. <?xml version=1.0

  • 0

I have a little ant script which should create 3 tar files.

<?xml version="1.0" encoding="UTF-8"?>
<project basedir="."  >

    <property name="dcc-shell.dir" value="${basedir}"/>
    <property name="dcc-mdp.dir" value="${dcc-shell.dir}/eq-mo-drop-copy-converter-mdp"/>
    <property name="mdp-code.dir" value="${dcc-mdp.dir}/src/main/*"/>
    <property name="dcc-srv.dir" value="${dcc-shell.dir}/eq-mo-drop-copy-converter-server"/>
    <property name="srv-code.dir" value="${dcc-srv.dir}/src/main/*"/>
    <property name="dcc-trans.dir" value="${dcc-shell.dir}/eq-mo-drop-copy-converter-transformer"/>
    <property name="trans-code.dir" value="${dcc-trans.dir}/src/main/*"/>

    <target name="create MDP Tar">
        <tar destfile="${dcc-shell.dir}/mdp.tar"
            basedir="${dcc-mdp.dir}/**"
            excludes="${dcc-mdp.dir}/target/*"
        />
    </target>

    <target name="create Trans Tar">
        <tar destfile="${dcc-shell.dir}/trans.tar"
            basedir="${dcc-trans.dir}/**"
            excludes="${dcc-trans.dir}/target/*"
        />
    </target>

    <target name="create SRV Tar">
        <tar destfile="${dcc-shell.dir}/srv.tar"
            basedir="${dcc-srv.dir}/**"
            excludes="${dcc-srv.dir}/target/*"
        />
    </target>
</project>

The script runs fine:

    Buildfile: C:\eq-Drop-Copy\eq-mo-drop-copy-converter-shell\build.xml
BUILD SUCCESSFUL
Total time: 94 milliseconds

However no tar files are created within the project. Somewhat of a mystery to myself

EDIT
I have been getting the following error!

    <target name="create MDP.Tar">
    <tar destfile="C:/eq-Drop-Copy/eq-mo-drop-copy-converter-shell/mdp.tar"
        basedir="C:/eq-Drop-Copy/eq-mo-drop-copy-converter-shell/eq-mo-drop-copy-converter-mdp/*"
        excludes="C:/eq-Drop-Copy/eq-mo-drop-copy-converter-shell/eq-mo-drop-copy-converter-mdp/target/*"
    />
</target>

I have changed the xml to the absoulet paths:

    <target name="create MDP.Tar">
    <tar destfile="C:/eq-Drop-Copy/eq-mo-drop-copy-converter-shell/mdp.tar"
        basedir="C:/eq-Drop-Copy/eq-mo-drop-copy-converter-shell/eq-mo-drop-copy-converter-mdp/*"
        excludes="C:/eq-Drop-Copy/eq-mo-drop-copy-converter-shell/eq-mo-drop-copy-converter-mdp/target/*"
    />
</target>

However still the same error how can the basedir not exist the build file is contained within it. The basedir within the MDP target is pointing to an absoulet path and tar all the files within that. why would this be giving an error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:45:08+00:00Added an answer on May 23, 2026 at 7:45 am

    I corrected several issues:

    • basedir attribute shouldn’t have “*” in it. It’ll automatically do the whole tree.
    • Targets can’t contain spaces
    • You probably didn’t specify targets. Therefore, I simply added a default target “create_all_tars”, and used <antcall> to call the needed targets.

      <project basedir="." default="create_all_tars" >
          <property name="dcc-shell.dir"
              value="${basedir}"/>
          <property name="dcc-mdp.dir"
              value="${dcc-shell.dir}/eq-mo-drop-copy-converter-mdp"/>
          <property name="mdp-code.dir"
              value="${dcc-mdp.dir}/src/main/*"/>
          <property name="dcc-srv.dir"
              value="${dcc-shell.dir}/eq-mo-drop-copy-converter-server"/>
          <property name="srv-code.dir"
              value="${dcc-srv.dir}/src/main/*"/>
           <property name="dcc-trans.dir"
               value="${dcc-shell.dir}/eq-mo-drop-copy-converter-transformer"/>
           <property name="trans-code.dir"
               value="${dcc-trans.dir}/src/main/*"/>
      
          <target name="create_all_tars">
              <antcall target="create_MDP_Tar"/>
              <antcall target="create_Trans_Tar"/>
              <antcall target="create_SRV_tar"/>
          </target>
      
          <target name="create_MDP_Tar">
              <tar destfile="${dcc-shell.dir}/mdp.tar"
                  basedir="${dcc-mdp.dir}"
                  excludes="${dcc-mdp.dir}/target/**"/>
          </target>
      
          <target name="create_Trans_Tar">
              <tar destfile="${dcc-shell.dir}/trans.tar"
                  basedir="${dcc-trans.dir}"
                  excludes="${dcc-trans.dir}/target/**"/>
          </target>
      
          <target name="create_SRV_Tar">
              <tar destfile="${dcc-shell.dir}/srv.tar"
                  basedir="${dcc-srv.dir}"
                  excludes="${dcc-srv.dir}/target/**"/>
          </target>
      

    Does this help?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have little question, my log4j.xml configuration is listed below <?xml version=1.0 encoding=UTF-8 ?>
The problem: you have a zipped java project distribution, which depends on several libraries
I have little Lotus Script or Notes/Domino knowledge but I have a procedure, copied
I have been given an application which uses a build.xml file for building purposes.
The ways I know about so far are Create an ant build.xml file, make
Let's say I have a file-system that looks a little something like this: C:\stuff\build.xml
I have little knowledge of Flash but for a little Flash game I have
i have little problem with boost::asio library. My app receive and process data asynchronously,
I have little bit longer question for you - but hope answer will be
I have little question about how web browser retrieve webpage? I know this User

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.