Path

ez projects / ezextensionbuilder / forum / general / need help to get the ant bu...


Need help to get the ant build to work.

You need to be logged in to post messages in the forums. New users may register here.

Felix Woldt

Member since:
17 February 2006

Posts: 75

Thursday 18 February 2010 5:41:08 pm

I am trying to get the ezextensionbuilder ant script to work. But i get an build.xml error.
Do you have any idea what i do wrong?
Hopefully you can give me a tip.
I really want to use this script for building my extensions.

Thank's

I have the following test setup using ezflow:




svn co http://svn.ez.no/svn/extensions/ezflow/trunk ezflow


cd ezflow


svn export http://svn.projects.ez.no/ezextensionbuilder/trunk/bootstrap.xml







ant -f bootstrap.xml


 

Buildfile: bootstrap.xml


 

ivy-download:


     [get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar


     [get] To: /home/felix/.ant/lib/ivy.jar


     [get] Not modified - so not downloaded


 

ivy-init:


 

ivy-resolve-dependencies:


     [get] Getting: http://svn.projects.ez.no/ezextensionbuilder/trunk/ivy.xml


     [get] To: /home/felix/Development/eclipse-3.5-jac/workspace_jac_pdt/ezflow/ivy.xml


[ivy:resolve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::


[ivy:resolve] :: loading settings :: url = jar:file:/home/felix/.ant/lib/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml


[ivy:resolve] :: resolving dependencies :: eZ Systems#build-dependencies;working@felix-xen


[ivy:resolve]   confs: [default]


[ivy:resolve]   found ant-contrib#ant-contrib;1.0b3 in public


[ivy:resolve] :: resolution report :: resolve 210ms :: artifacts dl 4ms


        ---------------------------------------------------------------------


        |                 |           modules           ||  artifacts  |


        |      conf      | number| search|dwnlded|evicted|| number|dwnlded|


        ---------------------------------------------------------------------


        |     default    |  1  |  0  |  0  |  0  ||  1  |  0  |


        ---------------------------------------------------------------------


[ivy:retrieve] :: retrieving :: eZ Systems#build-dependencies


[ivy:retrieve]  confs: [default]


[ivy:retrieve]  0 artifacts copied, 1 already retrieved (0kB/7ms)


 

bootstrap:


     [get] Getting: http://svn.projects.ez.no/ezextensionbuilder/trunk/build.xml


     [get] To: /home/felix/Development/eclipse-3.5-jac/workspace_jac_pdt/ezflow/build.xml


  [delete] Deleting: /home/felix/Development/eclipse-3.5-jac/workspace_jac_pdt/ezflow/ivy.xml


 

BUILD SUCCESSFUL


Total time: 2 seconds




running the ezflow build i am getting an error



ant all -Dextension.name=ezflow


 

Buildfile: build.xml


 [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.


 

BUILD FAILED


/home/felix/Development/eclipse-3.5-jac/workspace_jac_pdt/ezflow/build.xml:63: Problem: failed to create task or type propertycopy


Cause: The name is undefined.


Action: Check the spelling.


Action: Check that any custom tasks/types have been declared.


Action: Check that any <presetdef>/<macrodef> declarations have taken place.




the same with more debug output



ant all -Dextension.name=ezflow -d







ant all -Dextension.name=ezflow -d


Apache Ant version 1.7.1 compiled on February 23 2009


Buildfile: build.xml


Adding reference: ant.PropertyHelper


Detected Java version: 1.6 in: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre


Detected OS: Linux


Adding reference: ant.ComponentHelper


Setting ro project property: extension.name -> ezflow


Setting ro project property: ant.file -> /home/felix/Development/eclipse-3.5-jac/workspace_jac_pdt/ezflow/build.xml


Adding reference: ant.projectHelper


Adding reference: ant.parsing.context


Adding reference: ant.targets


parsing buildfile /home/felix/Development/eclipse-3.5-jac/workspace_jac_pdt/ezflow/build.xml with URI = file:/home/felix/Development/eclipse-3.5-jac/workspace_jac_pdt/ezflow/build.xml


Setting ro project property: ant.project.name -> eZExtensionBuilder


Adding reference: eZExtensionBuilder


Setting ro project property: ant.file.eZExtensionBuilder -> /home/felix/Development/eclipse-3.5-jac/workspace_jac_pdt/ezflow/build.xml


Project base dir set to: /home/felix/Development/eclipse-3.5-jac/workspace_jac_pdt/ezflow


 +Target: 

 +Target: help


 +Target: show-properties


 +Target: init


 +Target: -purge-file


 +Target: build


 +Target: clean


 +Target: clean-all


 +Target: dist


 +Target: all


 +Target: dist-clean


 +Target: update-ezinfo


 +Target: update-license-headers


 +Target: generate-documentation


 +Target: tests


 +Target: coding-standards-check


 +Target: generate-md5sums


 +Target: check-sql-files


 +Target: -fail-if-file-empty


 +Target: eznetwork-certify


 +Target: check-gnu-files


 +Target: generate-ezpackage-xml-definition


 +Target: update-package-xml


 +Target: build-dependencies


 +Target: -build-dependency


 +Target: create-package-tarballs


 +Target: -create-package-tarball


[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.


 [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.


Setting project property: date.now -> 2010-35-18_05:35:50


Setting project property: date.current.year -> 2010


Setting project property: DSTAMP -> 20100218


Setting project property: TSTAMP -> 1735


Setting project property: TODAY -> February 18 2010


Setting project property: build.dir -> build


 [property] Loading /home/felix/Development/eclipse-3.5-jac/workspace_jac_pdt/ezflow/ant/ezflow.properties


Setting project property: ezflow.package.ezflow_classes -> ezflow_classes


Setting project property: ezflow.version.release -> 0alpha1


Setting project property: ezflow.package.ezflow_extension -> ezflow_extension


Setting project property: ezflow.external.dependency.ezwebin.repository -> http://svn.ez.no/svn/extensions/ezwebin/trunk


Setting project property: ezflow.package.ezflow_democontent_clean -> ezflow_democontent_clean


Setting project property: ezp.version.minor -> 3


Setting project property: ezflow.package.ezflow_design -> ezflow_design


Setting project property: ezflow.version.minor -> 1


Setting project property: ezp.version.release -> 0alpha1


Setting project property: ezp.version.major -> 4


Setting project property: ezflow.package.ezflow_site -> ezflow_site


Setting project property: ezflow.svn.url -> http://svn.ez.no/svn/extensions/ezflow/trunk


Setting project property: ezflow.package.ezflow_site_clean -> ezflow_site_clean


Setting project property: ezflow.create.tarball -> no


Setting project property: <!-- -> external dependancy properties -->


Setting project property: ezflow.version.major -> 2


Setting project property: ezflow.package.ezflow_democontent -> ezflow_democontent


Adding reference: php.sources


Adding reference: all.sources


Adding reference: rst.sources


Adding reference: package.xml


 

BUILD FAILED


/home/felix/Development/eclipse-3.5-jac/workspace_jac_pdt/ezflow/build.xml:63: Problem: failed to create task or type propertycopy


Cause: The name is undefined.


Action: Check the spelling.


Action: Check that any custom tasks/types have been declared.


Action: Check that any <presetdef>/<macrodef> declarations have taken place.


 

        at org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:484)


        at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:416)


        at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)


        at org.apache.tools.ant.Task.perform(Task.java:347)


        at org.apache.tools.ant.Target.execute(Target.java:357)


        at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:142)


        at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:93)


        at org.apache.tools.ant.Main.runBuild(Main.java:743)


        at org.apache.tools.ant.Main.startAnt(Main.java:217)


        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)


        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)


 

Total time: 0 seconds


 

http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com
sponsor of http://ezsummercamp.com/

CJW Blog: http://www.cjw-network.com/en/blog
cjwpublish1411 - eZ Publish MultiSiteSetup - https://github.com/cjw-network/cjwpublish1411

Up

Björn Dieding@xrow.de

Member since:
07 March 2003

Posts: 47

Tuesday 23 February 2010 3:24:19 pm

you are missing http://ant-contrib.sourceforge.net/

I need to find out now how to install it...

the build of ant-contrib is failing for me

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Up

Björn Dieding@xrow.de

Member since:
07 March 2003

Posts: 47

Tuesday 23 February 2010 3:32:16 pm

there is also a binary package :-) ... I clicked the source of course

wget http://downloads.sourceforge.net/...ant-contrib-1.0b3-bin.zip?use_mirror

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Up

Björn Dieding@xrow.de

Member since:
07 March 2003

Posts: 47

Tuesday 23 February 2010 4:21:42 pm

Hi I fixed it by doing this in the build.xml url



 

-<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>


+<taskdef resource="net/sf/antcontrib/antcontrib.properties">


+ <classpath>


+   <pathelement location="/root/.ant/lib/ant-contrib-1.0b3-jar.jar"/>


+ </classpath>


+</taskdef>


 

 



maybe an ant bug?

[root@localhost ezflow]# ant -version
Apache Ant version 1.6.5 compiled on January 6 2007

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Up

Björn Dieding@xrow.de

Member since:
07 March 2003

Posts: 47

Tuesday 23 February 2010 5:42:24 pm

This is more flexible




<taskdef resource="net/sf/antcontrib/antcontrib.properties">


 <classpath>


   <pathelement location="${user.home}/.ant/lib/ant-contrib-1.0b3-jar.jar"/>     

 </classpath>


</taskdef>


Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Up

kaka zhu

Member since:
14 June 2011

Posts: 17

Tuesday 14 June 2011 5:10:17 am

Here is a sort [url=http://www.pinkoutcall.com]new york escort[/url] of original song by me , it is inspired by under my thumb by the stones..but there lyric is about dominating the woman , mine is how married men or men in a relationship although [url=http://www.pinkoutcall.com]new york escorts[/url] they say differntly to there mates like that a woman controls part of there lives and makes them better men and actually quite like being under her thumb
Up

You need to be logged in to post messages in the forums. New users may register here.