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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:37:56+00:00 2026-06-11T19:37:56+00:00

I am having Java EE application in which I was using ANT in order

  • 0

I am having Java EE application in which I was using ANT in order to do all my tasks. For the minification of JavaScript I was using YUI Compressor and its ANT plugin and used to compress my files during build. Now my problem is that I want to use the default eclipse build and achieve the same result. I want to know that whether is it possible to minify the JavaScript used in my project during the time eclipse builds my project or may be when it creates a war archive ?

  • 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-11T19:37:57+00:00Added an answer on June 11, 2026 at 7:37 pm

    I’m personnaly using ant, together with Google’s closure compiler, to concatenate and minify all my CSS and javascript file when I’m building my Java EE application.

    The steps are

    • concatenate all css files in one
    • concatenate all the js files
    • apply minification on the js concatenated file

    I have something like this :

    <target name="minify-m3" depends="init">
        <description>build the compacted/minified version </description>
        <echo>Concatenating the css...</echo>
        <concat destfile="${somevar.dir}/pmc.concat.css">
            <fileset dir="${somevar.dir}/skins/contrast">
               <filename name="*.css"/>
               <not><filename name="**/pmc.concat.css"/></not>
          </fileset>
        </concat>
    
        <echo>Concatenating javascript...</echo>
        <concat destfile="${somevar.dir}/pmc.concat.js">
            <!-- Attention : ensure there is no  Unicode BOM in the files -->
            <!-- attention : keep js files in order! -->
            <filelist dir="src/webapp/m3">
                <file name="graphic_utils.js" />
                <file name="Rect.js" />
                ...
            </filelist>
        </concat>
    
        <echo>Concatenating using the Closure Compiler...</echo>
        <jscomp compilationLevel="simple" warning="quiet" debug="false" output="${somevar.dir}/pmc.min.js">
            <sources dir="src/webapp/m3">
                <file name="pmc.concat.js" />
            </sources>
        </jscomp>
        <echo>Finished</echo>
    </target>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using java.awt.Robot for integration tests of my Swing application, but I'm having trouble
Using Linux environment with java,I'm having the config file which should be configured before
I am building my first Java application using GWT which must read in data
i am having a application in which java script is must. but i am
My Java application is displaying some odd behaviour, and I'm having trouble finding a
I am having this error in my j2ee web application. java.sql.SQLException: ORA-00604: error occurred
Having a background in Java, which is very verbose and strict, I find the
Using a Java based image uploader and having problems, seems my controller action is
I am having an application where two processes talk using SOAP. A file is
I'm having a bit of a problem building a Java Enterprise Edition web application

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.