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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:27:16+00:00 2026-06-15T02:27:16+00:00

I need to compile a webapp created with Netbeans (7.2) in Jenkins and I

  • 0

I need to compile a webapp created with Netbeans (7.2) in Jenkins and I have an error indicating that I need to pass this argument to Ant:

-Dj2ee.server.home=<app_server_installation_directory>

I would like to compile the project without Tomcat or Glassfish dependency in Windows and Linux. Is it possible?

  • 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-06-15T02:27:17+00:00Added an answer on June 15, 2026 at 2:27 am

    The solution is to create a -pre-build task in build.xml Ant script to download Tomcat (or Glassfish) and set j2ee.server.home dependency to the correct library path.

    <target name="-post-clean">
        <deltree dir="download" />
        <deltree dir="temp" />
    </target>
    
    <!--<target name="-pre-init" depends="check-dependencies" if="tomcat.present">-->
    <target name="-pre-init">        
        <property name="custom-tomcat-version" value="apache-tomcat-7.0.33" />
    
        <mkdir dir="temp"/>
        <get src="http://apache.rediris.es/tomcat/tomcat-7/v7.0.33/bin/apache-tomcat-7.0.33.zip" dest="temp/${custom-tomcat-version}.zip"/>
    
        <unzip dest="download/image" src="temp/${custom-tomcat-version}.zip">
            <patternset>
                <include name="apache-tomcat-7.*/lib/*"/>
            </patternset>
            <mapper>
                <globmapper from="apache-tomcat-7.*/lib/*" to="*"/>
            </mapper>
        </unzip>
    
        <!-- NB Ant script requieres this propertie to be assigned -->
        <property name="j2ee.server.home" value="download/image/${custom-tomcat-version}"/>
    </target>
    

    ¡¡Bien!!
    It works like a charm!!

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

Sidebar

Related Questions

I have a program that is written in Ada, and I need to compile
I need to compile the unit with /EHsc option, how could i set this
I need to compile my GWT 1.7 project from my ant build file....anyone know
I need to compile some mfc code that was written using Visual C++ 6.0
I need to have a process that compiles daily data into an PDF that
I need to compile a jar file using ant (1.7.0) to run under a
I need to compile assembly in memory, that can compile another one. There is
We have a couple mini-applications (single Web form look-up stuff) that need to run
I need a compile time check for what version of glibc will be used.
Am using windows xp sp3 on netbook and i need to compile c# programs

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.