I'll poke around first and see if I can figure it out. Thanks again.
On 9-Mar-09, at 4:05 PM, John Huss wrote:
It probably doesn't matter for this, but the standard build.xml file changed a bit recently and this uses the old version. So if you installed WOLips recently I can't say for sure that this will work verbatim, but it might.JohnOn Mon, Mar 9, 2009 at 2:55 PM, Kevin Hinkson <[email protected]> wrote:On 9-Mar-09, at 3:51 PM, John Huss wrote:Ask and you shall receive, seek and you shall find, knock and it will be opened to you.I use YUICompressor. This will minify the js and css files in the $ {dest.dir} location after the ant build (not the original files obviously). The mapper here doesn't actually change the filename - the files are minified in place. This is from the pre-hotness build.xml BTW.pre-hotness build? meaning what?Sorry I've been buried in my own world trying to learn webobjects for a bit and this is my first foray into the build process other than just getting it to deploy.John <target name="js.minify" depends="build.woapp"><apply executable="java" parallel="false" force="true" dest="${dest.dir}/${project.name}.woa/Contents/WebServerResources"><fileset dir="WebServerResources" includes="**/*.js"/> <arg line="-jar"/><arg path="../MySharedFramework/Libraries/ yuicompressor-2.3.5.jar"/><srcfile/> <arg line="-o"/> <mapper type="identity" from="*.js" to="*-min.js"/> <targetfile/> </apply> </target> <target name="css.minify" depends="build.woapp"><apply executable="java" parallel="false" force="true" dest="${dest.dir}/${project.name}.woa/Contents/WebServerResources"><fileset dir="WebServerResources" includes="**/*.css"/> <arg line="-jar"/><arg path="../MySharedFramework/Libraries/ yuicompressor-2.3.5.jar"/><arg line="--line-break 0"/> <srcfile/> <arg line="-o"/> <mapper type="identity" from="*.css" to="*-min.css"/> <targetfile/> </apply> </target>Cool. Thanks. I'll let you know if I have any issues.On Mon, Mar 9, 2009 at 2:33 PM, Kevin Hinkson <[email protected]> wrote:Hi,I've never done any scripting via Ant but I get the vague impression that I should be able to trigger a call to minify any javascript or CSS files being built in a WebObjects Eclipse project. Does anyone have any experience doing this or could maybe recommend a good Ant tutorial for me?Thanks. --- Kevin _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com This email sent to [email protected]--- Kevin _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com This email sent to [email protected]
--- Kevin
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
