1. #1
    Sencha User ludoo's Avatar
    Join Date
    Mar 2007
    Location
    France, Luxembourg
    Posts
    60
    Vote Rating
    2
    ludoo is on a distinguished road

      0  

    Default [Cmd 3.1.2.342] antlib taskdef not found in Ant build file.

    [Cmd 3.1.2.342] antlib taskdef not found in Ant build file.


    Hi,

    I updgraded from Cmd 3.1.1.274 to Cmd 3.1.2.342.
    But now, all my Ant targets failed.

    A case is "app refresh"

    Code:
    <target name="refresh" description="Refresh app" depends="init">
    		<echo>[sencha] app refresh</echo>
    		<x-sencha-command dir="${sencha.app.dir}">
    			app
    			refresh
    		</x-sencha-command>
    		<echo>App refreshed!</echo>
    	</target>
    As command line, it works well :
    >sencha ant refresh

    But launched as Ant target, it failed:
    >ant refresh
    Code:
    ...
    [x-sencha-command] INFO:   [taskdef] Could not load definitions from resource com/sencha/ant/antlib.xml. It could not be found.
    [x-sencha-command] 27 mai 2013 15:40:00 com.sencha.logging.LoggerInfoStream doLog
    ...
    As written in doc, it should be Similar to directly invoking Ant.

    I didn't understand why antlib is not properly loaded even with "init" dependency target called.
    I tried with a custom initialization with taskdef without success.

    Code:
    <taskdef resource="com/sencha/ant/antlib.xml" 
    		classpath="${cmd.dir}/sencha.jar"/>
    <x-extend-classpath>
            <jar path="${cmd.dir}/sencha.jar"/>
        </x-extend-classpath>
    	<x-sencha-init prefix=""/>
    Something is missing in loading but I can't find where.

    I found and read a similar thread but I haven't see any no useful information.

    Thanks for your support !

  2. #2
    Sencha User
    Join Date
    Jun 2011
    Location
    Spain
    Posts
    1
    Vote Rating
    0
    lizaro is on a distinguished road

      0  

    Default


    We are facing the same problem.

    The previous sencha cmd version runs flawlessly.

    We have the build integrated within maven using an ant task.
    We have tested both using the maven ant plugin and using and manually and both have the same issue.

    We think that the problem seems to be related to some of the resources loaded internally by the antlib.xml it self.

    Anyone that sheds some light into this issue? We want to upgrade to the latest version of Sencha Touch 2.2.1 as soon as possible to adopt the fixes from 2.2.0

    Thanks.

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    20
    Vote Rating
    2
    mike.arps is on a distinguished road

      0  

    Default


    @ludoo Where are you putting your custom ant targets?

  4. #4
    Sencha User ludoo's Avatar
    Join Date
    Mar 2007
    Location
    France, Luxembourg
    Posts
    60
    Vote Rating
    2
    ludoo is on a distinguished road

      0  

    Default


    My targets are in the build.xml in the root project, as usual.

    and sencha targets are imported using :
    Code:
    <import file="${basedir}/.sencha/app/build-impl.xml"/>

Thread Participants: 2

Tags for this Thread