Skip to content

add function to check existence of variable and check its value if exists #10

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

Closed
raydac opened this issue Jul 16, 2016 · 1 comment
Closed
Assignees
Milestone

Comments

@raydac
Copy link
Owner

raydac commented Jul 16, 2016

I am using your preprocessor as a maven plugin. I have this code:
xxxx
and it does not print when I have not defined the flag, and does when I do. So I know the plug-in preprocessing is taking place.
But when I tried enabling the print statements via mvn compile command:
/opt/apache-maven-3.2.3/bin/mvn clean install -DskipTests=true -DPRINT_WAYNE_FLAG=true
It did not work. Do you know what syntax I should use in the mvn command line to send a flag through mvn to affect the value of preprocessor flags in java code?

@raydac raydac added this to the 6.1.1 milestone Jul 16, 2016
@raydac raydac self-assigned this Jul 16, 2016
raydac added a commit that referenced this issue Jul 16, 2016
@raydac
Copy link
Owner Author

raydac commented Jul 16, 2016

since 6.1.1 such case can be processed with

//#if is("PRINT_WAYNE_FLAG",true)
    System.out.println("Exists and TRUE");
//#else
    System.out.println("Does not exist or not TRUE");
//#endif

@raydac raydac closed this as completed Jul 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant