Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Ant task for compiling JavaScript
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sten Roger  
View profile  
 More options Jan 8 2010, 6:46 pm
From: Sten Roger <ste...@gmail.com>
Date: Fri, 8 Jan 2010 15:46:09 -0800 (PST)
Local: Fri, Jan 8 2010 6:46 pm
Subject: Ant task for compiling JavaScript
Hi all.

I have (by request) submitted a patch to include a Ant task for
compiling javascripts with closure compiler. Instead of hosting such
tools myself it's better to be included under closure compiler project
(or any closure-compiler-tools) itself.

Really hope you guys include it since it will ease the job of
integrating this great tool in existing build environments. Can also
be used in builder (my favourite), gradle and Maven. Anyway, I have a
Maven plugin too that will be contributed as soon as I can manage to
clean up the code a bit.

/srs

An example on how to use it:
<?xml version="1.0"?>
<project basedir="." default="compile">

    <taskdef name="jscomp"
classname="com.google.javascript.jscomp.ant.CompileTask"
            classpath="../build/compiler.jar"/>

    <target name="compile">

        <jscomp compilation="simple" warning="verbose" debug="false"
output="output/file.js">

            <externs dir="${basedir}/src">
                <file name="extern.js"/>
            </externs>

            <sources dir="${basedir}/src">
                <file name="simple1.js"/>
                <file name="simple2.js"/>
            </sources>

            <sources dir="${basedir}/other">
                <file name="simple3.js"/>
            </sources>

        </jscomp>

    </target>

</project>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »