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 6778953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:19:39+00:00 2026-05-26T16:19:39+00:00

I have a build file in which I have a tasks as below //tomcat

  • 0

I have a build file in which I have a tasks as below

//tomcat stop ant script

When I run **tomcat-stop** task, instead of picking up the lib folder from tomcat server, it is trying to take my working directory.

I have set the project basedir as basedir=".". All my other tasks in the build file are working as expected but only in this scenario (tomcat-stop) I am finding an issue.

Error:

**C:\Dev\WebDev\XYZ\build.xml:103: C:\Dev\WebDev\XYZ\${build.tomcat.dir}\lib does not exist.**

I am using property file and everything from the property file is taken as expected. Also in the build.xml when I hover my mouse at the **classpathref="tomcat.class.path"**, it is showing all the files from tomcat lib but when I run the task I am getting the above error.

Entry in property file:
build.tomcat.dir=C:/TomcatServer

Any help is appreciated.

Thanks,
  • 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-26T16:19:40+00:00Added an answer on May 26, 2026 at 4:19 pm

    It looks like your properties file is loaded inside the ‘clean’ target. If you just invoke the ‘tomcat-stop’ target on its own, the properties file is never loaded. Your other targets are working because they depend on ‘clean’.

    Try moving the line that loads your property file so that it is a direct child of the root element. i.e. not nested inside a target.

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

Sidebar

Related Questions

I have an Ant task which runs if the lock file is not existing.
I have a Java application and a build file which, among its tasks, has
I have created a Java application which has the following Apache Ant build file:
I have a Nant build file which executes NUnit after compiling the dll's. I
I have a simple NAnt build file, which attempts to perform an update from
I have a CC.NET project configured to call a common NAnt build file, which
We have inherited an ant build file but now need to deploy to both
When you define an extension-point in an Ant build file you can have it
I've got a executable JAR file. And I've got an Ant build script that
I have multiple targets, which I'll call Foo and Bar, in my build file.

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.