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

  • SEARCH
  • Home
  • 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 6596089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:01:44+00:00 2026-05-25T18:01:44+00:00

I am using ant to compile gwt but it takes long long time to

  • 0

I am using ant to compile gwt but it takes long long time to compile. near 50sec.

How can I speed up compiling process.

ant task is

<target name="gwtc" description="GWT compile to JavaScript">
    <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler">
        <classpath>
            <pathelement location="${src.dir}"/>
            <path refid="compile.classpath"/>
        </classpath>
        <jvmarg value="-Xmx256M"/>
        <!--<arg value="-style"/>-->
        <!--<arg value="DETAILED"/>-->
        <arg value="com.typingApplication.TypingApplication"/>
        <arg value="-war" />
        <arg value="${build.dir}" />
    </java>
</target>
  • 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-25T18:01:45+00:00Added an answer on May 25, 2026 at 6:01 pm

    Add the param -localWorkers. This specifies that the permutations are done in parallel. Especially on a multicore machine this makes sense. The parameter for the argument is the number of parallel runs. I tested several combinations and found that 4 gave the best results(fastest, even while i tested it on a 6 core/12GB machine). So just try out what works best in your situation, also experiment with the memory value. for example try 512 instead of 256.

     <arg value="-localWorkers" />
     <arg value="4" />
    

    A second option is -draftCompile. This skips some compile optimizations, so it’s not an option you want to use for the production release. But in development it saves compilation time.

    Or buy a faster machine;-) processor speed matters in this case

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

Sidebar

Related Questions

I have a running Java GWT application, that I can compile using Eclipse. Now
I'm using ant to compile my android projects into debug apks. But sometimes when
I'm using Ant and mxmlc to compile ActionScript classes and MXML into swfs, while
Is there any way to speed up MXMLC compiles using Flextasks in Ant in
I'm using ant to generate javadocs, but get this exception over and over -
I am using Ant's get task to save a file to disk. I am
I am trying to compile my JasperReports template using an Ant script and Java.
Hallo, I cannot compile my project using an ant build script. The error message:
I need to compile a jar file using ant (1.7.0) to run under a
I am trying to build a sample application using ANT build. But i am

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.