add project into my system

29 views
Skip to first unread message

vishalag...@gmail.com

unread,
Jan 28, 2015, 3:44:41 AM1/28/15
to checksty...@googlegroups.com
Hi Sir,

I am not able to make checkstyle project into my eclipse workspace. I am new to work on open source project on GitHub and i don't know how to work with it. how can i make changes and compile and check it weather problem is solved or not?

can anyone tell me how can i add checkstyle to eclipse. after doing changes in project how can i compile it and see for UT error?

Thanks.

Roman Ivanov

unread,
Jan 28, 2015, 9:00:24 PM1/28/15
to vishalag...@gmail.com, checksty...@googlegroups.com
clone repository to local PC
run "mvn clean install" from terminal to make sure that compilable on you PC (it 100% compilable , out build system keep on that).
do import to eclipse "as existing maven project"
select any UT file , press right mouse button, in menu select  "Debug As > JUnit Test"

--
You received this message because you are subscribed to the Google Groups "checkstyle-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to checkstyle-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vishalag...@gmail.com

unread,
Jan 29, 2015, 11:01:52 PM1/29/15
to checksty...@googlegroups.com
Tests run: 884, Failures: 20, Errors: 0, Skipped: 1

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 56.653 s
[INFO] Finished at: 2015-01-30T09:28:06+05:30
[INFO] Final Memory: 37M/409M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project checkstyle: There are test failures.
[ERROR] 
[ERROR] Please refer to C:\Users\Bhavik\Documents\GitHub\checkstyle\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:



I am getting this errors on surefire plugin....
can you help

Roman Ivanov

unread,
Jan 29, 2015, 11:59:25 PM1/29/15
to vishalag...@gmail.com, checksty...@googlegroups.com

Please share with me full log in github.com/gist, please be sure that you use latest sources.

vishalag...@gmail.com

unread,
Jan 30, 2015, 1:18:58 AM1/30/15
to checksty...@googlegroups.com
This is the log i got while executing "mvn clean install"

using check style version 6.2

https://gist.github.com/VishalAgraval/3e158e5a00d0bccda96c



On Wednesday, January 28, 2015 at 2:14:41 PM UTC+5:30, vishalag...@gmail.com wrote:

Roman Ivanov

unread,
Jan 30, 2015, 8:39:11 AM1/30/15
to vishalag...@gmail.com, checksty...@googlegroups.com

Smth is wrong about ANT, it is failed and did not print exact errors, please recheck that you use latest ANT.
You use windows, all our builds are going on linux, i recommend you to switch to linux os for development, in other case you can wait for long time till come to windows to recheck build status.

--

Roman Ivanov

unread,
Jan 31, 2015, 1:19:35 AM1/31/15
to vishalag...@gmail.com, checksty...@googlegroups.com
Hi Vishal,

one our team member shared his logs from compilation on Windows

so here is definitely problem with files separators, as in UTs Unix separators are hardcoded, that is not good. 

You can fix that and propose that fix to us as Pull Request.

​thanks,
Roman Ivanov

vishalag...@gmail.com

unread,
Jan 31, 2015, 8:31:20 AM1/31/15
to checksty...@googlegroups.com
Thanks Roman,

i run it on Linux and problem solved



On Wednesday, January 28, 2015 at 2:14:41 PM UTC+5:30, vishalag...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages