SV: [Magic]change remote repository?

[email protected]
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <8538F0205935D411A7D100508BAC128901983D7F@DIANA>
Hi,
thanks, now it seems to build.
However, even if I have MAGIC_HOME declared, magic.cache got set wrong by
only setting it as a top level property, probably it should get set together
with magic.home in target "declare-magic-home"?

/peter

-----Ursprungligt meddelande-----
Från: Stephen McConnell [mailto:[email protected]]
Skickat: den 3 september 2004 15:28
Till: 'Avalon framework users'
Ämne: RE: [Magic]change remote repository?




You need to do two things:

In the top-level build.xml, make sure that ${magic.cache} is defined as
${magic.home}/main - ie.:

    <property name="magic.cache" value="${magic.home}/main"/>

Then in tools/magic/build.xml replace the "install" target with the
following:

  <target name="update" depends="install">
    <mkdir dir="${user.home}/.ant/lib"/>
    <copy toDir="${user.home}/.ant/lib" 
       file="${basedir}/target/deliverables/jars/${project.filename}"/>
  </target>

These two updates are needed to do get a clean build from scratch.

Concerning the list of remote repositories - you need to add define the
'magic.hosts' property in ${magic.home}/user.properties.  The
${magic.home}/magic.properties already contains the default definition
so you can use that as an example.

Cheers, Steve.


-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Tuesday, July 20, 2004 12:38 AM
To: [email protected]
Subject: [Magic]change remote repository?

Hi,
trying to build avalon, I can't download the mail-api. We have it on our
internal server so I would like to add that to the list of remote
repositories.

Which property do I have to set in the top user.properites?


Thanks

/peter




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

C:\project>ant
Buildfile: build.xml

verify:

default:
import: C:\project\central\index.xml
import: C:\project\tools\index.xml
import: C:\project\runtime\index.xml
import: C:\project\planet\index.xml
import: C:\project\planet\cornerstone\index.xml
import: C:\project\planet\facilities\index.xml
import: C:\project\planet\tutorials\index.xml
Resource count: 144

default:
[x:reactor] Candidates: 116
[x:reactor] Preparing build sequence.
------------------------------------------------------------------------
[avalon/logkit/avalon-logkit]
[avalon/framework/avalon-framework-api]
[avalon/framework/avalon-framework-legacy]
[avalon/framework/avalon-framework-impl]
[avalon/meta/avalon-meta-api]
[avalon/util/avalon-util-configuration]
[avalon/util/avalon-util-i18n]
[avalon/meta/avalon-meta-spi]
[avalon/meta/avalon-meta-impl]
[avalon/meta/avalon-meta-tools]
[avalon/util/avalon-util-lifecycle]
[avalon/test/avalon-test-playground]
[avalon/test/avalon-test-components]
[avalon/util/avalon-util-env]
[avalon/util/avalon-util-defaults]
[avalon/util/avalon-util-criteria]
[avalon/util/avalon-util-exception]
[avalon/repository/avalon-repository-api]
[avalon/repository/avalon-repository-util]
[avalon/repository/avalon-repository-spi]
[avalon/repository/avalon-repository-main]
[avalon/repository/avalon-repository-cli]
[avalon/repository/avalon-repository-impl]
[avalon/repository/avalon-repository-test]
[avalon/logging/avalon-logging-api]
[avalon/logging/avalon-logging-spi]
[avalon/logging/avalon-logging-impl]
[avalon/logging/avalon-logging-logkit-api]
[avalon/logging/avalon-logging-logkit-datagram]
[avalon/logging/avalon-logging-logkit-socket]
[avalon/logging/avalon-logging-logkit-syslog]
[avalon/logging/avalon-logging-log4j]
[avalon/logging/avalon-logging-logkit-impl]
[avalon/logging/avalon-logging-test]
[avalon/test/avalon-test-teste]
[avalon/test/avalon-test-testd]
[avalon/test/avalon-test-testc]
[avalon/test/avalon-test-testb]
[avalon/test/avalon-test-testa]
[avalon/test/avalon-test-includes]
[avalon/test/avalon-test-dynamics]
[avalon/util/avalon-util-extension-api]
[avalon/util/avalon-util-extension-impl]
[avalon/composition/avalon-composition-api]
[avalon/composition/avalon-composition-spi]
[avalon/composition/avalon-composition-impl]
[avalon/activation/avalon-activation-api]
[avalon/activation/avalon-activation-impl]
[avalon/jmx/avalon-jmx-api]
[avalon/jmx/avalon-jmx-handler]
[avalon/cornerstone/cornerstone-threads-api]
[avalon/cornerstone/cornerstone-threads-impl]
[avalon/cornerstone/cornerstone-sockets-api]
[avalon/cornerstone/cornerstone-connection-api]
[avalon/cornerstone/cornerstone-connection-impl]
[avalon/tutorial/avalon-tutorial-publisher-api]
[avalon/tutorial/avalon-tutorial-location-api]
[avalon/tutorial/avalon-tutorial-location-impl]
[avalon/finder/avalon-finder-api]
[avalon/finder/avalon-finder-impl]
[avalon/cornerstone/cornerstone-scheduler-api]
[avalon/http/avalon-http-api]
[avalon/http/avalon-http-util]
[avalon/http/avalon-http-spi]
[avalon/http/avalon-http-impl]
[avalon/jmx/avalon-jmx-util]
[avalon/tutorial/avalon-tutorial-dependency-auto]
[avalon/tutorial/avalon-tutorial-config-injection]
[avalon/jms/avalon-jms-api]
[avalon/jms/avalon-jms-impl]
[avalon/tutorial/avalon-tutorial-publisher-impl]
[avalon/tutorial/avalon-tutorial-application-impl]
[avalon/merlin/avalon-merlin-api]
[avalon/merlin/avalon-merlin-impl]
[avalon/merlin/avalon-merlin-unit]
[avalon/finder/avalon-finder-test]
[avalon/http/avalon-http-test]
[avalon/tools/avalon-tools-magic]
[avalon/tutorial/avalon-tutorial-lifecycle-classic]
[avalon/tutorial/avalon-tutorial-lifecycle-modern]
[avalon/tutorial/avalon-tutorial-dependency-manual]
[avalon/cornerstone/cornerstone-store-api]
[avalon/tutorial/avalon-tutorial-parameters]
[avalon/jms/avalon-jms-test]
[avalon/tutorial/avalon-tutorial-hello]
[avalon/tutorial/avalon-tutorial-main]
[avalon/tutorial/avalon-tutorial-context-custom]
[avalon/cornerstone/cornerstone-threads-tutorial]
[avalon/tutorial/avalon-tutorial-context-strategy]
[avalon/jmx/avalon-jmx-spi]
[avalon/tutorial/avalon-tutorial-selection]
[avalon/jmx/avalon-jmx-mx4j]
[avalon/cornerstone/cornerstone-datasources-api]
[avalon/cornerstone/cornerstone-sockets-impl]
[avalon/jmx/avalon-jmx-test]
[avalon/dbcp/avalon-dbcp-api]
[avalon/dbcp/avalon-dbcp-impl]
[avalon/tutorial/avalon-tutorial-dynamics]
[avalon/tutorial/avalon-tutorial-profiles]
[avalon/db/avalon-db-api]
[avalon/db/avalon-db-hsql]
[avalon/merlin/avalon-merlin-cli]
[avalon/tutorial/avalon-tutorial-context-casting]
[avalon/runtime]
[avalon/site]
[avalon/tutorial/avalon-tutorial-context-avalon]
[avalon/tutorial/avalon-tutorial-config-defaults]
[avalon/cornerstone/cornerstone-scheduler-impl]
[avalon/tutorial/avalon-tutorial-config-block]
[avalon/tutorial/avalon-tutorial-config-override]
[avalon/tutorial/avalon-tutorial-context-plus]
[avalon/cornerstone/cornerstone-datasources-impl]
[avalon/tutorial/avalon-tutorial-webserver]
[avalon/cornerstone/cornerstone-store-impl]
[avalon/tutorial/avalon-tutorial-context-alias]
[avalon/tutorial/avalon-tutorial-context-injection]
------------------------------------------------------------------------

info:
------------------------------------------------------------------------
name: avalon-logkit
------------------------------------------------------------------------

init:

prepare:

build:
      [get] Getting:
http://www.dpml.net/avalonx/supplemental/jars/mailapi-1.3.1
.jar
      [get] Error opening connection java.io.IOException
      [get] Error opening connection java.io.IOException
      [get] Error opening connection java.io.IOException
      [get] Can't get
http://www.dpml.net/avalonx/supplemental/jars/mailapi-1.3.
1.jar to C:\Documents and
Settings\PNB\.magic\main\avalonx\supplemental\jars\mai
lapi-1.3.1.jar
      [get] Getting:
http://www.apache.org/dist/java-repository/avalonx/suppleme
ntal/jars/mailapi-1.3.1.jar
      [get] Error opening connection java.io.IOException
      [get] Error opening connection java.io.IOException
      [get] Error opening connection java.io.IOException
      [get] Can't get
http://www.apache.org/dist/java-repository/avalonx/supplem
ental/jars/mailapi-1.3.1.jar to C:\Documents and
Settings\PNB\.magic\main\avalon
x\supplemental\jars\mailapi-1.3.1.jar
      [get] Getting:
http://www.ibiblio.org/maven/avalonx/supplemental/jars/mail
api-1.3.1.jar
      [get] Error opening connection java.io.IOException
      [get] Error opening connection java.io.IOException
      [get] Error opening connection java.io.IOException
      [get] Can't get
http://www.ibiblio.org/maven/avalonx/supplemental/jars/mai
lapi-1.3.1.jar to C:\Documents and
Settings\PNB\.magic\main\avalonx\supplemental
\jars\mailapi-1.3.1.jar

BUILD FAILED
C:\project\build.xml:50: Following error occured while executing this
line
C:\project\central\system\build\reactor.xml:39: Following error occured
while ex
ecuting this line
C:\project\central\system\build\standard.xml:23:
java.io.FileNotFoundException:
avalonx/supplemental/jars/mailapi-1.3.1.jar

Total time: 2 seconds



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.