Ticket #49 (new defect)

Reporter


Michael Hasenstein
Opened: 04/14/12
Last modified: 10/12/12
Status: new
Type: defect

Owner


Reid Burke
Target Release:
Priority:
Summary: No CompressorTask - build does not work
Description:

/var/www/yui/builder/componentbuild/shared/targets.xml:25: The following error occurred while executing this line:
/var/www/yui/builder/componentbuild/shared/macrolib.xml:81: taskdef class com.yahoo.platform.yui.compressor.CompressorTask cannot be found
using the classloader AntClassLoader[/var/www/yui/builder/componentbuild/lib/yuicompressor/yuicompressor-2.4.7.jar]

I have ant 1.8.2, and plain and fresh yui2, yui3 and builder git clones. I have this exact same problem on a number of very different systems (Windows, Linux), where I tried this.

Not understanding advanced Java and Ant, even though at work I write ant build files myself, it seems to me that this CANNOT EVER WORK:

Looking at the yuicompressor (2.4.7) jar, and also at its (github) .java sources, THERE SIMPLY IS NO CLASS "com.yahoo.platform.yui.compressor.CompressorTask".

All the READMEs say that if I have a (plain, fresh) system with ant correctly setup and builder and yui3 (and/or 2) freshly clonoed from github I should just be able to call ant - but I can't.

If *I* am doing something very obviously wrong, that any Java/Ant nut knows, I wish it could be included in the README.

Type: defect Observed in Version: development master
Component: Builder Severity: S2 (high)
Assigned To: Reid Burke Target Release:
Location: Priority:
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

Michael Hasenstein

Posted: 04/14/12

I have just found that there IS a CompressorTask.class - BUT ONLY in (obsolete) file

builder/componentbuild/lib/yuicompressor/ant-yuicompressor-2.4.5pre2.jar

So it seems to me that this one java class has gone missing. And no one noticed but me??? I don't quite believe it.

Ian Brandt

YUI Contributor

Posted: 07/11/12

Is this still an issue? In "builder/componentbuild/shared/properties.xml" the "yuicompressor.jar" property is currently set to "${builddir}/lib/yuicompressor/ant-yuicompressor-2.4.5pre2.jar", and that JAR has a "com/yahoo/platform/yui/compressor/CompressorTask.class" in it.

Michael Hasenstein

Posted: 07/12/12

2.4.7 is the current version of yuicompressor, so even if 2.4.5pre2 works (don't know), are we supposed to forever use the old one???

smartmil8

  • Username: smartmil8
Posted: 10/12/12

If you decide to make neti pot solution by yourself, follow these simple neti pot solution recipes. To prepare basic solution ½ teaspoon of salt (unionized or sea salt) and ½ teaspoon of soda should be dissolved in 250 grams of warm sterile, distilled or boiled water. Don’t use tap water. It needs to be filtered first.