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
Checking existance of config file before processing target file. #1267
Comments
@Bhavik3 , please address. |
@romani |
launch as command line from java, smth like https://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#exec%28java.lang.String%29 |
My solution is to: Is it fine? |
yes |
ok |
try to create a file in target folder ..... need to be investigateds |
Intermediate solution: problem is naming of jar file in target folder....(can differ by version) Or, have other method to generate jar in pre-defined name. |
@romani |
not yet, but I will for sure. You can do smth else meanwhile. |
You need to create new package there:
maven should do that for for you, please review options of http://maven.apache.org/surefire/maven-failsafe-plugin/integration-test-mojo.html to not hardcode any strict version and build commands in ITs files. |
@romani |
ITs are just another UTs but working after package phase is done , so they could test binaries as it would be done by user.
https://github.com/checkstyle/checkstyle/blob/master/config/assembly-bin.xml#L14 here is how "-all" jar is generated. Please update that config to gnerate the same content jar but without version there. Here is maven plugin - https://github.com/checkstyle/checkstyle/blob/master/pom.xml#L1034 that responsible for "all" jar generation. That plugin exists in special profile, so it will not be launched in general maven build till "-Passembly" is specified. So we need to investigate a way to do "all" jar generation during general build too. Or we could think about running ITs over checkstyle-6.8.2.jar but classpath need to be setup for it. Please continue investigation of maven, If you run into problem let me know - I will help you. |
@romani |
It is ok, task is not simple. Alljar is generated by mvn clean package -Passembly |
merged. |
3004b4d that commit was reverted, please review #1265.
Write provide integration tests and UTs for Main to avoid such cases in future.
The text was updated successfully, but these errors were encountered: