[ 9 posts ]

Michael Hasenstein

  • Username: hasenstein
  • Joined: Fri Mar 20, 2009 7:22 am
  • Posts: 91
  • Location: Nuernberg, Germany
  • Offline
  • Profile

taskdef class ...compressor.CompressorTask cannot be found

Post Posted: Mon Feb 20, 2012 12:39 am
+0-
My environment is set up as it should I'd say, the ant output below shows the relevant settings. I could try to fiddle with the build files, but shouldn't this work out of fthe box? I'm using the current yui3 and builder master from github.

Output from "ant all": http://pastie.org/3419015


Unrelated images to fulfill the 20% fun quota per question:

- http://www.worldofstock.com/slides/MES4551.jpg
- http://www.liv.ac.uk/~sdb/Safari-2007/I ... ckling.jpg

Michael Hasenstein

  • Username: hasenstein
  • Joined: Fri Mar 20, 2009 7:22 am
  • Posts: 91
  • Location: Nuernberg, Germany
  • Offline
  • Profile

Re: taskdef class ...compressor.CompressorTask cannot be fou

Post Posted: Wed Feb 22, 2012 5:01 am
+0-
On another system it runs until I get another Java exception:

http://pastie.org/3431585

builder\componentbuild\shared\macrolib.xml:92: java.lang.IncompatibleClassChangeError: Class com.yahoo.platform.yui.compressor.JavaScriptCompress
r does not implement the requested interface com.yahoo.platform.yui.compressor.ConfigurableCompressor)

Michael Hasenstein

  • Username: hasenstein
  • Joined: Fri Mar 20, 2009 7:22 am
  • Posts: 91
  • Location: Nuernberg, Germany
  • Offline
  • Profile

Re: taskdef class ...compressor.CompressorTask cannot be fou

Post Posted: Thu Mar 08, 2012 12:59 am
+0-
Ping...

I do exactly what "YUI3 nighlties" does (see https://github.com/rockstar/yui3-nightl ... nightly.sh), so why doesn't it work? Anyone?

paolo nesti poggi

YUI Contributor

  • Username: paolo
  • Joined: Sat Mar 14, 2009 9:53 am
  • Posts: 77
  • Location: Roskilde DK
  • GitHub: tribis
  • Gists: tribis
  • Offline
  • Profile
Tags:

Re: taskdef class ...compressor.CompressorTask cannot be fou

Post Posted: Thu Mar 08, 2012 10:14 am
+0-
I can't say about the second error, however the first one should be because you are running ant from the wrong directory. You should be inside ../src
while you are in:

Quote:
/var/www/yui/yui3/src/file


if you check the example you bring, you see it does:

Code:
cd yui3/src
ant all -Dlint.skip=true


/paolo

Michael Hasenstein

  • Username: hasenstein
  • Joined: Fri Mar 20, 2009 7:22 am
  • Posts: 91
  • Location: Nuernberg, Germany
  • Offline
  • Profile

Re: taskdef class ...compressor.CompressorTask cannot be fou

Post Posted: Thu Mar 08, 2012 11:25 am
+0-
I'm in the right directory. I may have been in a component's directory when I copied the error msg, but even so - building them individually should work too anyway.

Michael Hasenstein

  • Username: hasenstein
  • Joined: Fri Mar 20, 2009 7:22 am
  • Posts: 91
  • Location: Nuernberg, Germany
  • Offline
  • Profile

Re: taskdef class ...compressor.CompressorTask cannot be fou

Post Posted: Tue Mar 27, 2012 4:20 am
+0-
... (ping)...

Ryuichi Okumura

YUI Contributor

  • Username: okuryu
  • Joined: Mon Dec 07, 2009 6:19 am
  • Posts: 11
  • Location: Tokyo, Japan.
  • Twitter: okuryup
  • GitHub: okuryu
  • Gists: okuryu
  • IRC: okuryu
  • Offline
  • Profile

Re: taskdef class ...compressor.CompressorTask cannot be fou

Post Posted: Tue Mar 27, 2012 4:54 am
+0-
Which Java version that using?

Michael Hasenstein

  • Username: hasenstein
  • Joined: Fri Mar 20, 2009 7:22 am
  • Posts: 91
  • Location: Nuernberg, Germany
  • Offline
  • Profile

Re: taskdef class ...compressor.CompressorTask cannot be fou

Post Posted: Tue Mar 27, 2012 7:23 am
+0-
1.6.0_31 - which is the Java 6 you get from java.com today. The various paths (PATH, JDK_HOME, JAVA_HOME) point there too.

Michael Hasenstein

  • Username: hasenstein
  • Joined: Fri Mar 20, 2009 7:22 am
  • Posts: 91
  • Location: Nuernberg, Germany
  • Offline
  • Profile

Re: taskdef class ...compressor.CompressorTask cannot be fou

Post Posted: Sat Apr 14, 2012 2:19 am
+0-
I found more info: THIS CANNOT, EVER, have worked since after yuicompressor version "ant-yuicompressor-2.4.5pre2.jar" was being used.

Why? The task defined in builder/componentbuild/shared/macrolib.xml

<taskdef name="yuicompressor"
classname="com.yahoo.platform.yui.compressor.CompressorTask"
classpath="${yuicompressor.jar}"/>

calls for Class "CompressorTask" - which is ONLY present in the above .jar file (in builder/componentbuild/lib/yuicompressor), and NOWHERE ELSE.

WTF?


PS: I filed this ticket http://yuilibrary.com/projects/builder/ ... properties
  [ 9 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum