-
Notifications
You must be signed in to change notification settings - Fork 89
Enhancement: Optionally do not delete all contents of gh-pages branch #94
Comments
+1 |
Just deleting what's in the copy spec ends up meaning we're just copying rather than "syncing", so that won't work. Some type of target dir might make the most sense. Not sure what the best way to expose that is though.
|
Would the option added in #102 resolve this for you? |
For releases it is probably ok. However if you want to publish SNAPSHOT javadoc you would always copy javadoc to the same location and in that case you actually want to replace the old one with the new one. If you don't do so you would end up with garbage in the branch (e.g. when classes are renamed/moved/deleted during development) Avoiding that garbage in such a scenario is probably only possible by introducing the target folder concept and allowing only the target folder to be cleaned instead of the whole branch. |
Makes sense. |
Currently the Github pages plugin deletes everything in the gh-pages branch. It would be nice if an optional behavior could be defined in which the plugin only deletes the folders/files defined in the copy spec (or alternatively allow defining a target folder, instead of always using
/
)This would solve the following use cases:
The text was updated successfully, but these errors were encountered: