Closed anujbhan closed 8 years ago
Few points :
Please let me know what I can do from my side.
I have managed to bypass that above stated problem by using
this.getClass().getResourceAsStream()
Now the problem is generating scripts, I am unable to create new script files in "src/main/resource' folder.
Your example MavenTest works for me, so I'm not sure what problem you are reporting.
You should be careful about the Java IO methods you are using and why. Some look for files in the classpath and some look in the regular file system. Your example, as you know, needs a full file system path.
Hello Marlon, I've made some additional changes in the Manager.java file to include file write operation to the resource file. Would you be able to check if this prints the output that is being written to the file?
We have modified our design such that the user needs to specify the directory in the filesystem where the config files would be copied. We had earlier attempted to package the config files in the jar in the previous design.
That's fine. Remember the main goal of the assignment. If I have to edit a property file or config file, that is not a problem.
Maven build not recognizing the file path in resources directory.
URL url = this.getClass().getResource("/keyFile.ppk");
Error : FileNotFoundExceptionInputStream is = this.getClass().getResourceAsStream("/KeyFile.ppk");