Hi Mykel,
There is something weird happenning: I don't understand why reading a file
would hang. FYI, it's working perfectly in a number of places.
We'll have to find what is so special in your case.
Can you get a thread dump when ant freezes?
On Linux, it's: kill -SIGQUIT <pid>
Hervé
Le mardi 7 août 2007, Mykel Alvis a écrit :
> Hi all,
> I'm trying to make an example ant project for one of our teams who
> currently uses ant to do their builds.
>
> Relevant sections of build.xml
> --------------------------------------------
> <target name="init">
> <tstamp>
> <format property="build.date" pattern="[EMAIL PROTECTED]" />
> </tstamp>
> <mkdir dir="${target.dir}" />
> <mkdir dir="${ target.classes}" />
> <mkdir dir="${target.gensrc}" />
> <mkdir dir="${target.dist}" />
> <mkdir dir="${lib}" />
> </target>
>
> <target name="maven-setup" depends="init" description="Setup maven ant
> tasks, required for dependency resolution">
> <get src="${maven.ant.task.url}" dest="${lib}/${
> maven.ant.task.jar}" usetimestamp="true" />
> <path id="maven-ant-tasks.classpath"
> path="lib/${maven.ant.task.jar}" />
> <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
> uri="urn:maven-artifact-ant" classpathref=" maven-ant-tasks.classpath" />
> <artifact:remoteRepository id="remote.public" url="${url.public}"
> /> <echo message="Installing Provider"/>
> <artifact:install-provider artifactId="wagon-webdav" version="
> 1.0-beta-2" />
> <echo message="Provider Installed"/>
> </target>
>
>
> build.properties
> -------------------------
> custom = true
> # Jarfile name of the maven ant tasks. Occasionally updates
> maven.ant.task.jar=maven-ant-tasks-2.0.7.jar
> # Local file location of maven ant tasks jar
> maven.ant.task.url=http://sirdsite/installs/maven-ant-tasks/${maven.ant.tas
>k.jar} # repo username for scp
> repository.username=localbuild
> # localtion of local private key
> repository.privatekey=${user.home}/.ssh/id_dsa
> url.public=http://sirdsite/proximity/repository/public
> url.codehaus=http://sirdsite/proximity/repository/codehaus
> # URL of remote snapshot.
> remote.snapshot.url=scp://sirdsite/var/www/html/m2repos
> remote.release.url=scp://sirdsite/var/www/html/m2repos/dst/release
> target.dir=target
> target.gensrc=target/generated-sources
> target.dist=target/dist
> target.classes=target/classes
> lib=lib
> src=src/main/java
> artifactOne=artifact1.jar
> artifactTwo=artifact2.jar
>
>
> When I execute this command, it seems to hang at reading my long-ish
> settings.xml
> [EMAIL PROTECTED] ExampleAntMavenProject]$ ant -v
> Apache Ant version 1.6.5 compiled on June 2 2005
> Buildfile: build.xml
> Detected Java version: 1.5 in: /usr/java/jdk1.5.0_12/jre
> Detected OS: Linux
> parsing buildfile
> /home/mykel/workspace-tutorial/ExampleAntMavenProject/build.xml with URI =
> file:///home/mykel/workspace-tutorial/ExampleAntMavenProject/build.xml
> Project base dir set to:
> /home/mykel/workspace-tutorial/ExampleAntMavenProject
> [property] Loading
> /home/mykel/workspace-tutorial/ExampleAntMavenProject/build.properties
> Build sequence for target(s) `all' is [init, maven-setup,
> resolve-dependencies, compile, package, install, all]
> Complete build sequence is [init, maven-setup, resolve-dependencies,
> compile, package, install, all, deploy-subordinate, deploy-release, clean,
> deploy-snapshot, ]
>
> init:
>
> maven-setup:
> [get] Getting:
> http://sirdsite/installs/maven-ant-tasks/maven-ant-tasks-2.0.7.jar
> [get] To:
> /home/mykel/workspace-tutorial/ExampleAntMavenProject/lib/maven-
> ant-tasks-2.0.7.jar
> [get] Not modified - so not downloaded
> parsing buildfile
> jar:file:/home/mykel/workspace-tutorial/ExampleAntMavenProject/lib/maven-
> ant-tasks-2.0.7.jar!/org/apache/maven/artifact/ant/antlib.xml with URI =
> jar:file:/home/mykel/workspace-tutorial/ExampleAntMavenProject/lib/maven-
> ant-tasks-2.0.7.jar!/org/apache/maven/artifact/ant/antlib.xml
> [echo] Installing Provider
> [artifact:install-provider] Using remote repositories:
> - id=central, url=http://repo1.maven.org/maven2, releases=enabled,
> snapshots=disabled
> [artifact:install-provider] Loading Maven settings file:
> /home/mykel/.m2/settings.xml
>
> ....and we wait.
>
> I cut the settings.xml down to just the bare minimum (the mirror setting
> for our proximity setup which keeps all the proxy/firewall issues away).
> No discernible effect.
>
> The wagon-provider is already installed in my local repo from various maven
> builds, so the need to d/l it seems off-kilter but this is an ant project
> so I dunno what's really supposed to happen here.
>
> Am I doing something wrong?
> MANTTASKS-6<http://jira.codehaus.org/browse/MANTTASKS-6>reports some
> element of this fixed, although that seems to be unrelated to
> an inability to read from my local settings file. I posted this same log
> as a comment to the fixed issue.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]