FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
spring-framework/import-into-eclipse.bat at master · Java1024/spring-framework · GitHub
Java1024
spring-framework
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
spring-framework
/
import-into-eclipse.bat
Copy path
More file actions
More file actions
Latest commit
History
History
History
117 lines (100 loc) · 4.07 KB
Breadcrumbs
spring-framework
/
import-into-eclipse.bat
Copy path
File metadata and controls
117 lines (100 loc) · 4.07 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
@
echo
off
set
STS_TEST_VERSION
=
'2.9.2.RELEASE'
set
CURRENT_DIR
=
%~dp0
cd
%CURRENT_DIR%
cls
echo
.
echo
-----------------------------------------------------------------------
echo
Spring Framework Eclipse/STS project import guide
echo
.
echo
This script will guide you through the process of importing the
echo
Spring Framework sources into Eclipse/STS. It is recommended that you
echo
have a recent version of the SpringSource Tool Suite (this script has
echo
been tested against STS
%STS_TEST_VERSION%
), but
at
the minimum you will
echo
need Eclipse + AJDT.
echo
.
echo
If you need to download and install STS, please do that now by
echo
visiting http://spring.io/tools/sts/all
echo
.
echo
Otherwise, press enter and we'll begin.
pause
REM
this command:
REM
- wipes out any existing Eclipse metadata
REM
- generates OXM test classes to avoid errors on import into Eclipse
REM
- generates metadata for all subprojects
REM
- skips metadata gen for the root project (-x :eclipse) to work
REM
around Eclipse's inability to import hierarchical project structures
REM
SET COMMAND="./gradlew --no-daemon cleanEclipse :spring-oxm:compileTestJava eclipse -x :eclipse"
SET
COMMAND
=
gradlew --no-daemon cleanEclipse :spring-oxm:compileTestJava eclipse -x :eclipse
echo
.
echo
-----------------------------------------------------------------------
echo
STEP 1: Generate subproject Eclipse metadata
echo
.
echo
The first step will be to generate Eclipse project metadata for each
echo
of the spring-* subprojects. This happens via the built-in
echo
"
Gradle wrapper
"
script (./gradlew in this directory).
If
this is your
echo
first time using the Gradle wrapper, this step may take a few minutes
echo
while a Gradle distribution is downloaded for you.
echo
.
echo
The command run will be:
echo
.
echo
%COMMAND%
echo
.
echo
Press enter when ready.
pause
call
%COMMAND%
if
not
"
%ERRORLEVEL%
"
==
"
0
"
exit
/B
%ERRORLEVEL%
echo
.
echo
-----------------------------------------------------------------------
echo
STEP 2: Import subprojects into Eclipse/STS
echo
.
echo
Within Eclipse/STS, do the following:
echo
.
echo
File
^
>
Import...
^
>
Existing Projects into Workspace
echo
^
>
When prompted
for
the 'root directory', provide
%CURRENT_DIR%
echo
^
>
Press enter. You will see the modules show up under
"
Projects
"
echo
^
>
All projects should be selected/checked. Click Finish.
echo
^
>
When the project import is complete, you should have no errors.
echo
.
echo
When the above is complete, return here and press the enter key.
pause
set
COMMAND
=
gradlew --no-daemon :eclipse
echo
.
echo
-----------------------------------------------------------------------
echo
STEP 3: generate root project Eclipse metadata
echo
.
echo
Unfortunately, Eclipse does not allow for importing project
echo
hierarchies, so we had to skip root project metadata generation in the
echo
during step 1. In this step we simply generate root project metadata
echo
so you can import it in the next step.
echo
.
echo
The command run will be:
echo
.
echo
%COMMAND%
echo
.
echo
Press the enter key when ready.
pause
call
%COMMAND%
if
not
"
%ERRORLEVEL%
"
==
"
0
"
exit
/B
%ERRORLEVEL%
echo
.
echo
-----------------------------------------------------------------------
echo
STEP 4: Import root project into Eclipse/STS
echo
.
echo
Follow the project import steps listed in step
2
above to import the
echo
root project.
echo
.
echo
Press enter when complete, and move on to the final step.
pause
echo
.
echo
-----------------------------------------------------------------------
echo
STEP 5: Enable Git support for all projects
echo
.
echo
- In the Eclipse/STS Package Explorer, select all spring* projects.
echo
- Right-click to open the context menu and select Team
^
>
Share Project...
echo
- In the Share Project dialog that appears, select Git and press Next
echo
- Check
"
Use or create repository in parent folder of project
"
echo
- Click Finish
echo
.
echo
When complete, you'll have Git support enabled for all projects.
echo
.
echo
You're ready to code
! Goodbye!
Back
|
FazBrowse Home
|
New Git URL