From 53ca923495e8c4c4a319b1dc05c9b51d035b8134 Mon Sep 17 00:00:00 2001 From: Scokart Gilles Date: Mon, 5 Nov 2007 20:19:08 +0000 Subject: [PATCH] extract the execution log for filter-framework tutorial git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@592143 13f79535-47bb-0310-9956-ffa450edef68 --- build-tutorial.sh | 7 +- doc/tutorial/conf.html | 6 +- doc/tutorial/log/configurations-lib.txt | 71 +++++++++++++++++++ .../multi-projects/filter-framework/build.xml | 12 +++- 4 files changed, 89 insertions(+), 7 deletions(-) create mode 100644 doc/tutorial/log/configurations-lib.txt diff --git a/build-tutorial.sh b/build-tutorial.sh index df16b7c4..bfba9512 100755 --- a/build-tutorial.sh +++ b/build-tutorial.sh @@ -25,8 +25,8 @@ function run () { #run OUTPUT_FILE ANT_SCRIPT [TARGET...] #Execute ANT_SCRIPT and store the output in OUTPUT_FILE. #It stops the execution of the main script if the ant script fails - echo "Run ant $2 $3 $4 > $1" - ant -lib build/artifact -f $2 $3 $4> $1 2>&1 + echo "Run ant $2 $3 $4 $5 > $1" + ant -lib build/artifact -f $2 $3 $4 $5 > $1 2>&1 if [[ $? == 0 ]] ; then echo "SUCESSFULL"; else @@ -66,8 +66,9 @@ run doc/tutorial/log/dependence-depending-2.txt src/example/dependence/dependin #configuration - Using Ivy Configuration - conf.html -run build/tmp.log src/example/configurations/multi-projects/filter-framework/build.xml run build/tmp.log src/example/configurations/multi-projects/myapp/build.xml clean +run build/tmp.log src/example/configurations/multi-projects/filter-framework/build.xml clean clean-cache clean-local +run doc/tutorial/log/configurations-lib.txt src/example/configurations/multi-projects/filter-framework/build.xml run doc/tutorial/log/configurations-runcc.txt src/example/configurations/multi-projects/myapp/build.xml run doc/tutorial/log/configurations-runhm.txt src/example/configurations/multi-projects/myapp/build.xml run-hm diff --git a/doc/tutorial/conf.html b/doc/tutorial/conf.html index 51093f65..d3874ded 100644 --- a/doc/tutorial/conf.html +++ b/doc/tutorial/conf.html @@ -78,9 +78,9 @@ Later when others will use our library they will have a very flexible way to def

See it in action

The library project is build using ant. Open a shell in the root directory of the project and type ant. - - - +
+[]
+
The ant's default target is publish. This target use ivy to publish our library binaries in a local repository. As we do not specify any repository path the default one is use. ({home.dir}/.ivy/local/jayasoft/filter-framework/) diff --git a/doc/tutorial/log/configurations-lib.txt b/doc/tutorial/log/configurations-lib.txt new file mode 100644 index 00000000..083c791b --- /dev/null +++ b/doc/tutorial/log/configurations-lib.txt @@ -0,0 +1,71 @@ +Buildfile: src\example\configurations\multi-projects\filter-framework\build.xml + +clean: + +resolve: +[ivy:retrieve] :: Ivy 2.0.0-beta1-local-20071105200109 - 20071105200109 :: http://ant.apache.org/ivy/ :: +[ivy:retrieve] No ivy:settings found for the default reference 'ivy.instance'. A default instance will be used +[ivy:retrieve] no settings file found, using default... +[ivy:retrieve] :: loading settings :: url = jar:file:/c:/dev/data/opensource_workspace/ivy/build/artifact/ivy-core.jar!/org/apache/ivy/core/settings/ivysettings.xml +[ivy:retrieve] :: resolving dependencies :: [ org.apache | filter-framework | working@BEN-ScokartG ] +[ivy:retrieve] confs: [api, homemade-impl, cc-impl, test] +[ivy:retrieve] found [ commons-collections | commons-collections | 3.1 ] in public +[ivy:retrieve] found [ junit | junit | 3.8 ] in public +[ivy:retrieve] downloading http://repo1.maven.org/maven2/commons-collections/commons-collections/3.1/commons-collections-3.1.jar ... +[ivy:retrieve] ............................................................................. +[ivy:retrieve] .............................................................................................. +[ivy:retrieve] ................................................. +[ivy:retrieve] .................................................................................................. +[ivy:retrieve] ................................................... (546kB) +[ivy:retrieve] .. (0kB) +[ivy:retrieve] [SUCCESSFUL ] [ commons-collections | commons-collections | 3.1 ]/commons-collections.jar[jar] (8322ms) +[ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/3.8/junit-3.8.jar ... +[ivy:retrieve] ............................................................................... +[ivy:retrieve] ...... (118kB) +[ivy:retrieve] .. (0kB) +[ivy:retrieve] [SUCCESSFUL ] [ junit | junit | 3.8 ]/junit.jar[jar] (3015ms) +[ivy:retrieve] :: resolution report :: + --------------------------------------------------------------------- + | | modules || artifacts | + | conf | number| search|dwnlded|evicted|| number|dwnlded| + --------------------------------------------------------------------- + | api | 0 | 0 | 0 | 0 || 0 | 0 | + | homemade-impl | 0 | 0 | 0 | 0 || 0 | 0 | + | cc-impl | 1 | 1 | 0 | 0 || 1 | 1 | + | test | 2 | 2 | 0 | 0 || 2 | 2 | + --------------------------------------------------------------------- +[ivy:retrieve] :: retrieving :: [ org.apache | filter-framework ] +[ivy:retrieve] confs: [api, homemade-impl, cc-impl, test] +[ivy:retrieve] 3 artifacts copied, 0 already retrieved + +build: + [mkdir] Created dir: C:\dev\data\opensource_workspace\ivy\src\example\configurations\multi-projects\filter-framework\build + [mkdir] Created dir: C:\dev\data\opensource_workspace\ivy\src\example\configurations\multi-projects\filter-framework\distrib + [javac] Compiling 4 source files to C:\dev\data\opensource_workspace\ivy\src\example\configurations\multi-projects\filter-framework\build + [javac] Note: Some input files use unchecked or unsafe operations. + [javac] Note: Recompile with -Xlint:unchecked for details. + [jar] Building jar: C:\dev\data\opensource_workspace\ivy\src\example\configurations\multi-projects\filter-framework\distrib\filter-api.jar + [jar] Building jar: C:\dev\data\opensource_workspace\ivy\src\example\configurations\multi-projects\filter-framework\distrib\filter-hmimpl.jar + [jar] Building jar: C:\dev\data\opensource_workspace\ivy\src\example\configurations\multi-projects\filter-framework\distrib\filter-ccimpl.jar + +test: + [mkdir] Created dir: C:\dev\data\opensource_workspace\ivy\src\example\configurations\multi-projects\filter-framework\build\test-report + [mkdir] Created dir: C:\dev\data\opensource_workspace\ivy\src\example\configurations\multi-projects\filter-framework\build\test-classes + [javac] Compiling 3 source files to C:\dev\data\opensource_workspace\ivy\src\example\configurations\multi-projects\filter-framework\build\test-classes + [junit] Running filter.ccimpl.CCFilterTest + [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.02 sec + [junit] Running filter.hmimpl.HMFilterTest + [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0 sec + +publish: +[ivy:publish] :: delivering :: [ org.apache | filter-framework | working@BEN-ScokartG ] :: 1.3 :: release :: Mon Nov 05 21:10:46 CET 2007 +[ivy:publish] delivering ivy file to C:\dev\data\opensource_workspace\ivy\src\example\configurations\multi-projects\filter-framework\distrib/ivy.xml +[ivy:publish] :: publishing :: [ org.apache | filter-framework ] +[ivy:publish] published filter-hmimpl to C:\Documents and Settings\scokartg\.ivy2\local/org.apache/filter-framework/1.3/jars/filter-hmimpl.jar +[ivy:publish] published filter-api to C:\Documents and Settings\scokartg\.ivy2\local/org.apache/filter-framework/1.3/jars/filter-api.jar +[ivy:publish] published filter-ccimpl to C:\Documents and Settings\scokartg\.ivy2\local/org.apache/filter-framework/1.3/jars/filter-ccimpl.jar +[ivy:publish] published ivy to C:\Documents and Settings\scokartg\.ivy2\local/org.apache/filter-framework/1.3/ivys/ivy.xml + [echo] project filter-framework released with version 1.3 + +BUILD SUCCESSFUL +Total time: 20 seconds diff --git a/src/example/configurations/multi-projects/filter-framework/build.xml b/src/example/configurations/multi-projects/filter-framework/build.xml index 6cb66d35..61b1623f 100644 --- a/src/example/configurations/multi-projects/filter-framework/build.xml +++ b/src/example/configurations/multi-projects/filter-framework/build.xml @@ -27,6 +27,8 @@ + + @@ -120,7 +122,15 @@ - + + + + + + +