4
Using a batch file and wget/curl, how can I download the Multiverse-Core-.jar from here? http://ci.onarandombox.com/job/Multiverse-Core/lastStableBuild/artifact/target/
I want to use the timestamping option and the "All files in zip" link doesn't work since the "last-modified" header doesn't exist for it. If I use http://ci.onarandombox.com/job/Multiverse-Core/lastStableBuild/artifact/target/Multiverse-Core-2.5.jar, then the timestamping option works, but I want to be able to use the first link and not have to change it every time the version number changes. I've tried
wget -r -l 1 -nH -A jar -R *javadoc.jar,*sources.jar http://ci.onarandombox.com/job/Multiverse-Core/lastStableBuild/artifact/target/
But it just creates "job\Multiverse-Core\lastStableBuild\artifact\target" in the current directory without the files. Is there something wrong with my script?
Could you perhaps show me how I use this to get curl/wget to download just the Multiverse-Core.jar in a batch script? I'm using Windows 7 if that matters. – Craft1n3ss – 2013-04-25T07:32:00.830
@Craft1n3ss I don't know enough batch. – Daniel Beck – 2013-04-25T07:34:17.730
Thanks for the information anyway. I can probably do it myself if I search around or ask another question. I'd give you an upvote, but I don't have enough reputation (this was my first question). – Craft1n3ss – 2013-04-25T07:45:01.477
1Got it! using
FOR /F "tokens=14 delims=<>" %%a IN ('curl -g "http://ci.onarandombox.com/job/Multiverse-Core/lastStableBuild/api/xml?tree=artifacts[fileName]"') DO ECHO %%a
will echo the exact name of the file I want. Thanks for the help. – Craft1n3ss – 2013-04-26T23:22:19.877