Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a header option to the ant task to prepend source code files #1

Closed
alfonsodelavega opened this issue Aug 1, 2023 · 0 comments
Closed

Comments

@alfonsodelavega
Copy link
Collaborator

Currently, sjpp removes any header from source code files, and places the generic message // THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.

Having the option to e.g. read an input file to use as header will allow customising it. The distribution of PlantUML codebase under different licenses is an existing use case for this feature, such as:

<target name="dist">
	<sjpp src="src-folder" dest="src-generated" define="__MIT__"  header="mit_header_content.txt" />
</target>

I'll submit a PR with this functionality shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant