<div dir="ltr">Can we change the dependencies such that it builds up the software like in eclipse?<br><br>-ragib<br><br><div class="gmail_quote">On Tue, Jul 15, 2008 at 12:27 PM, Ben Clifford <<a href="mailto:benc@hawaga.org.uk">benc@hawaga.org.uk</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
VDLCache is in the vdsk module.<br>
<br>
The WeightedHost stuff is in karajan, which is a dependency.<br>
<br>
You can't use code from module A in module B if module A is dependent on<br>
module B (equivalently if if module B is a prerequisite of module A)<br>
<br>
Here A = vdsk, B= karajan<br>
<br>
There's a subclass of the weighted host scheduler that lives in the vdsk<br>
module and extends the functionality in swift-specific ways:<br>
src//org/griphyn/vdl/karajan/VDSAdaptiveScheduler.java<br>
<br>
You might be able to add your new functionality there.<br>
<br>
If its building in eclipse, that's because it enforces cog module<br>
dependencies differently (or not at all).<br>
<div class="Ih2E3d"><br>
On Tue, 15 Jul 2008, Ragib Morshed wrote:<br>
<br>
</div><div><div></div><div class="Wj3C7c">> Ben suggested forwarding this problem of mine to swift-devel.<br>
><br>
> ---------- Forwarded message ----------<br>
> From: Ragib Morshed <<a href="mailto:ragib.morshed@gmail.com">ragib.morshed@gmail.com</a>><br>
> Date: Tue, Jul 15, 2008 at 11:40 AM<br>
> Subject: Fwd: build problem with swift<br>
> To: <a href="mailto:benc@ci.uchicago.edu">benc@ci.uchicago.edu</a><br>
><br>
><br>
> Hi Ben,<br>
><br>
> I sent this email to Mihael, but he is off somewhere at a conference I<br>
> think, and don't know if he will get to it.<br>
><br>
> I put some code in for the site-affinity thing and swift compiles and runs<br>
> the code fine using eclipse. Compilation/building using ant says: *package<br>
> org.griphyn.vdl.karajan.lib.cache does not exist. *But it is there and<br>
> compiles fine with eclipse.<br>
><br>
> Do you have any ideas on the top of your head where the problem might be?<br>
><br>
> Thanks.<br>
> -Ragib<br>
><br>
><br>
> ---------- Forwarded message ----------<br>
> From: Ragib Morshed <<a href="mailto:ragib.morshed@gmail.com">ragib.morshed@gmail.com</a>><br>
> Date: Tue, Jul 15, 2008 at 11:25 AM<br>
> Subject: build problem with swift<br>
> To: Mihael Hategan <<a href="mailto:hategan@uchicago.edu">hategan@uchicago.edu</a>><br>
><br>
><br>
> Hi,<br>
><br>
> I have been trying to build swift with the new changes using 'ant dist', but<br>
> it gives compilation error. It compiles and runs fine on eclipse, but here<br>
> it says it can't find the package org.gridphyn.vdl.karajan.lib.cache so it<br>
> cannot recognize the VDLFileCache type. Any ideas why?<br>
><br>
> Here's the output from building it:<br>
><br>
> [javac] Compiling 540 source files to<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/karajan/build<br>
> [javac]<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/karajan/src/org/globus/cog/karajan/scheduler/WeightedHostScoreScheduler.java:34:<br>
> *package org.griphyn.vdl.karajan.lib.cache does not exist*<br>
> [javac] import org.griphyn.vdl.karajan.lib.cache.VDLFileCache;<br>
> [javac] ^<br>
> [javac]<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/karajan/src/org/globus/cog/karajan/scheduler/WeightedHostScoreScheduler.java:230:<br>
> cannot resolve symbol<br>
> [javac] symbol : class VDLFileCache<br>
> [javac] location: class<br>
> org.globus.cog.karajan.scheduler.WeightedHostScoreScheduler<br>
> [javac] VDLFileCache fileCache = (VDLFileCache)<br>
> t.getConstraint("filecache");<br>
> [javac] ^<br>
> [javac]<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/karajan/src/org/globus/cog/karajan/scheduler/WeightedHostScoreScheduler.java:230:<br>
> cannot resolve symbol<br>
> [javac] symbol : class VDLFileCache<br>
> [javac] location: class<br>
> org.globus.cog.karajan.scheduler.WeightedHostScoreScheduler<br>
> [javac] VDLFileCache fileCache = (VDLFileCache)<br>
> t.getConstraint("filecache");<br>
> [javac] ^<br>
> [javac] Note: Some input files use or override a deprecated API.<br>
> [javac] Note: Recompile with -deprecation for details.<br>
> [javac] 3 errors<br>
><br>
> BUILD FAILED<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/vdsk/build.xml:73: The<br>
> following error occurred while executing this line:<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:442: The following<br>
> error occurred while executing this line:<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:78: The following<br>
> error occurred while executing this line:<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:51: The following<br>
> error occurred while executing this line:<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/vdsk/dependencies.xml:4:<br>
> The following error occurred while executing this line:<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:162: The following<br>
> error occurred while executing this line:<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:167: The following<br>
> error occurred while executing this line:<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/modules/karajan/build.xml:59:<br>
> The following error occurred while executing this line:<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:463: The following<br>
> error occurred while executing this line:<br>
> /autonfs/home/rmorshed/Desktop/swiftNew/cog/mbuild.xml:227: Compile failed;<br>
> see the compiler error output for details.<br>
><br>
> Total time: 30 seconds<br>
><br>
> -ragib<br>
><br>
</div></div></blockquote></div><br></div>