Webapps - moving files from Target to Source
Answered
We are developing webapps within IntelliJ using a proprietary api and framework (individual webapps are registered as modules within the parent app) . While running these webapps, we generate xsd model files, using the parent webapp front end, which are stored within the webapp file structures. We need to copy these files back into the src folder structures.
Example of structures:
-webappModuleName
-src
-main
-webapp
-WEB-INF
-ebx
-schemas
>model.xsd
-target
-webappModuleName
-WEB-INF
-ebx
-schemas
>model.xsd
Is there a way to script this within IntelliJ?
Please sign in to leave a comment.
Not sure when exactly you need to perform such a step. E.g.
- There is an option to run ant task before/after build artifact step: see
in artifact settings.
- You can configure triggers for Maven or Ant to be run after/before IDE build actions.
- Run/Debug Configuration has a Before Launch step where different tasks (including running any external tool) can be added.