Am 2013-09-07 20:56, schrieb Bidlo:
Hello, thanks for answer.1. It's a plain Java library 2. Not a Maven plugin Well, this is what I tried inside my library. File reportFolder = new File("target/myLibrary"); reportFolder.mkdir(); //this creates folder in the project which is using the library, so far so good and then File foldersToBeCopiedFromMyLibrary = new File("src/main/resources/bootstrap"); //this is inside myLibrary project FileUtils.copyDirectoryToDirectory(foldersToBeCopiedFromMyLibrary, reportFolder); And this fails on FileNotFoundException because the project which is using myLibrary doesn't have bootstrap folder in src/main/resources. So I can actually create folder in the client project but I don't know how to copy files and folders from library project to it's client which is using it. (it's the same case like the Surefire does, it's copying CSS and JS files to the target/surefire dir in the client)
This does not look like a Maven problem. You are seeking help for a general Java problem. Go for stackoverflow.com.
This is clearly off-topics unless you are writing a Maven plugin and need some help.
Michael --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
