AdamBien / wad

Watch and Deploy - deploying ThinWARs without IDE plugins
http://wad.sh
MIT License
111 stars 24 forks source link

Parametrize war name #8

Open lampsbr opened 4 years ago

lampsbr commented 4 years ago

My project is located in directories like xFulanov1.56.3, but it always generates war files like target/fulano.war. WAD fails to find my war file, giving me a java.nio.file.NoSuchFileException: target\xFulanov1.56.3.war error message. Is it possible to tell WAD that it should observe a different filename?

Due to business restrictions, it wouldn't be easy to rename my project directories.

AdamBien commented 4 years ago

wad.sh fully relies on conventions and derives the WAR name from the projects folder. IMO: artifactid == foldername == WAR name. So far there were no serious reason to deviate from this convention. Do you know any?

However: making the WAR name configurable could be easily implemented -> I'm thinking about that for the next release.

lampsbr commented 4 years ago

Hi @AdamBien ! I agree with convention, I think it's the best pratice. But I work in an old svn-based project where we need to checkout multiple copies of the same project. Usually my workspace has about 15 different versions of the project, and I edit/run 2-4 versions each day. It would be hard to rename directories all the time, that's why I'm asking for the feature. =D