I'm developing a javafx application that uses logging to a file, and does some processing to a file that is backuped in a folder in the project structure. The problem is that neither the file of the log (nor the logging.properties file), and the temp folder to save the files are copied into the deployed package. The project structure is as this:
-src
-test
-resources
-config
*logging.properties
-css
-view
-images
*file1.json
*file2.json
-temp
*temp_file1
*temp_fileN
*log.txt
The resources folder is copied fine with all the css, fxml and images, and also the two json files that are used to store data. But the log.txt in the root of the project is not there when the application is used, nor the config and temp folders.
I have the build.xml
file fixed with the following lines, that I know works for the resources stuff, but doesn't solve my problem:
<filelist>
<file name="${java.home}\..\lib\ant-javafx.jar"/>
<file name="${java.home}\lib\jfxrt.jar"/>
<file name="${basedir}"/>
</filelist>
...
<fx:resources id="appRes">
<fx:fileset dir="dist" includes="MyApp.jar"/>
<fx:fileset dir="dist" includes="libs/*"/>
<fx:fileset dir="dist" includes="resources/**"/>
</fx:resources>