Exolius / SimpleBackup

A bukkit plugin to zip up specified maps at regular intervals.
20 stars 19 forks source link

some cleanup for maven builds on linux #25

Closed joba1 closed 11 years ago

joba1 commented 11 years ago

This pull request contains

HTH

mantun commented 11 years ago

Looks good to me, except the last commit, because I don't think Exolius uses maven to build it.

joba1 commented 11 years ago

Fair enough. I am new to java, maven and bukkit plugin builds. I missed a way to actually do this (no sign of ant, maven, make or the like). Is there an even easier way?

Exolius commented 11 years ago

I myself use intelli-j to build the artifacts (jar files) that are uploaded to the bukkit dev page. http://puu.sh/2Ct6J.png http://puu.sh/2CtaP.png .

I have never tried using maven myself although I have heard some good things about it.

Regarding the second commit, on my local machine the file is named "FileUtils" but on the git repo it is named "Fileutils" which is odd I must say

joba1 commented 11 years ago

Thanks for explaining that build mystery :) Maybe Intelli-J has some project config file that you want to check in? Fileutils oddity probably stems from windows filesystems usually do not make a distinction between upper and lowercase, and a tool like git, coming from linux, may have a problem with that.

Exolius commented 11 years ago

After playing around with maven it seems that its pretty simple, I think I may use this from now on, I will merge this. One thing I don't understand is where it gets the bukkit dependencies from. Think you could enlighten me on the subject?

joba1 commented 11 years ago

Regarding dependencies: I can just speculate since I mainly used cut&paste from other plugins to make this pom.xml work. I know make has some c/c++ knowledge built in and since afaik maven is mostly used for java projects, I guess it has enough java knowledge inside to extract the dependencies from the sources it finds with the resource tags and verify this with the given dependency tags that it downloads

Thanks for merging completely. Makes it easier for me.

Exolius commented 11 years ago

After some reading up on maven dependencies here http://wiki.bukkit.org/Bukkit_as_a_Maven_Dependency , it seems it gets the correct one from http://repo.bukkit.org/content/groups/public/org/bukkit/craftbukkit/ .

Changing the '1.5-R0.1-SNAPSHOT' to '1.4.7-R1.' for example would compile the plugin with bukkit 1.4.7.