File tree Expand file tree Collapse file tree 15 files changed +564
-0
lines changed Expand file tree Collapse file tree 15 files changed +564
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Auto detect text files and perform LF normalization
2
+ * text =auto
3
+
4
+ # Custom for Visual Studio
5
+ * .cs diff =csharp
6
+ * .sln merge =union
7
+ * .csproj merge =union
8
+ * .vbproj merge =union
9
+ * .fsproj merge =union
10
+ * .dbproj merge =union
11
+
12
+ # Standard to msysgit
13
+ * .doc diff =astextplain
14
+ * .DOC diff =astextplain
15
+ * .docx diff =astextplain
16
+ * .DOCX diff =astextplain
17
+ * .dot diff =astextplain
18
+ * .DOT diff =astextplain
19
+ * .pdf diff =astextplain
20
+ * .PDF diff =astextplain
21
+ * .rtf diff =astextplain
22
+ * .RTF diff =astextplain
Original file line number Diff line number Diff line change
1
+ # ################
2
+ # # Eclipse
3
+ # ################
4
+
5
+ * .pydevproject
6
+ .project
7
+ .metadata
8
+ bin /
9
+ tmp /
10
+ * .tmp
11
+ * .bak
12
+ * .swp
13
+ * ~.nib
14
+ local.properties
15
+ .classpath
16
+ .settings /
17
+ .loadpath
18
+
19
+ # External tool builders
20
+ .externalToolBuilders /
21
+
22
+ # Locally stored "Eclipse launch configurations"
23
+ * .launch
24
+
25
+ # CDT-specific
26
+ .cproject
27
+
28
+ # PDT-specific
29
+ .buildpath
30
+
31
+
32
+ # ################
33
+ # # Visual Studio
34
+ # ################
35
+
36
+ # # Ignore Visual Studio temporary files, build results, and
37
+ # # files generated by popular Visual Studio add-ons.
38
+
39
+ # User-specific files
40
+ * .suo
41
+ * .user
42
+ * .sln.docstates
43
+
44
+ # Build results
45
+ [Dd ]ebug /
46
+ [Rr ]elease /
47
+ * _i.c
48
+ * _p.c
49
+ * .ilk
50
+ * .meta
51
+ * .obj
52
+ * .pch
53
+ * .pdb
54
+ * .pgc
55
+ * .pgd
56
+ * .rsp
57
+ * .sbr
58
+ * .tlb
59
+ * .tli
60
+ * .tlh
61
+ * .tmp
62
+ * .vspscc
63
+ .builds
64
+ * .dotCover
65
+
66
+ # # TODO: If you have NuGet Package Restore enabled, uncomment this
67
+ # packages/
68
+
69
+ # Visual C++ cache files
70
+ ipch /
71
+ * .aps
72
+ * .ncb
73
+ * .opensdf
74
+ * .sdf
75
+
76
+ # Visual Studio profiler
77
+ * .psess
78
+ * .vsp
79
+
80
+ # ReSharper is a .NET coding add-in
81
+ _ReSharper *
82
+
83
+ # Installshield output folder
84
+ [Ee ]xpress
85
+
86
+ # DocProject is a documentation generator add-in
87
+ DocProject /buildhelp /
88
+ DocProject /Help /* .HxT
89
+ DocProject /Help /* .HxC
90
+ DocProject /Help /* .hhc
91
+ DocProject /Help /* .hhk
92
+ DocProject /Help /* .hhp
93
+ DocProject /Help /Html2
94
+ DocProject /Help /html
95
+
96
+ # Click-Once directory
97
+ publish
98
+
99
+ # Others
100
+ [Bb ]in
101
+ [Oo ]bj
102
+ sql
103
+ TestResults
104
+ * .Cache
105
+ ClientBin
106
+ stylecop. *
107
+ ~$ *
108
+ * .dbmdl
109
+ Generated_Code # added for RIA/Silverlight projects
110
+
111
+ # Backup & report files from converting an old project file to a newer
112
+ # Visual Studio version. Backup files are not needed, because we have git ;-)
113
+ _UpgradeReport_Files /
114
+ Backup * /
115
+ UpgradeLog * .XML
116
+
117
+
118
+
119
+ # ###########
120
+ # # Windows
121
+ # ###########
122
+
123
+ # Windows image file caches
124
+ Thumbs.db
125
+
126
+ # Folder config file
127
+ Desktop.ini
128
+
129
+
130
+ # ############
131
+ # # Python
132
+ # ############
133
+
134
+ * .py [co ]
135
+
136
+ # Packages
137
+ * .egg
138
+ * .egg-info
139
+ dist
140
+ build
141
+ eggs
142
+ parts
143
+ bin
144
+ var
145
+ sdist
146
+ develop-eggs
147
+ .installed.cfg
148
+
149
+ # Installer logs
150
+ pip-log.txt
151
+
152
+ # Unit test / coverage reports
153
+ .coverage
154
+ .tox
155
+
156
+ # Translations
157
+ * .mo
158
+
159
+ # Mr Developer
160
+ .mr.developer.cfg
161
+
162
+ # Mac crap
163
+ .DS_Store
Original file line number Diff line number Diff line change
1
+ Manifest-Version : 1.0
2
+ Class-Path :
3
+
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <web-app xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xmlns=" http://java.sun.com/xml/ns/javaee" xmlns : web =" http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
4
+ xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
5
+ id=" WebApp_ID" version =" 2.5" >
6
+ <display-name >jshint-exec</display-name >
7
+ <welcome-file-list >
8
+ <welcome-file >index.html</welcome-file >
9
+ <welcome-file >index.htm</welcome-file >
10
+ <welcome-file >index.jsp</welcome-file >
11
+ <welcome-file >default.html</welcome-file >
12
+ <welcome-file >default.htm</welcome-file >
13
+ <welcome-file >default.jsp</welcome-file >
14
+ </welcome-file-list >
15
+ <servlet >
16
+ <description ></description >
17
+ <display-name >SvnLogin</display-name >
18
+ <servlet-name >SvnLogin</servlet-name >
19
+ <servlet-class >svnlogin.SvnLogin</servlet-class >
20
+ </servlet >
21
+ <servlet-mapping >
22
+ <servlet-name >SvnLogin</servlet-name >
23
+ <url-pattern >/login.jsp</url-pattern >
24
+ </servlet-mapping >
25
+ </web-app >
Original file line number Diff line number Diff line change
1
+ <%@ page language =" java" contentType =" text/html; charset=gb2312"
2
+ pageEncoding =" gb2312" %>
3
+ <%
4
+ request. setCharacterEncoding(" gb2312" );
5
+ % >
6
+ <%@ page import =" java.util.ArrayList" %>
7
+ <%@ page import =" java.util.List;" %>
8
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
9
+ <html >
10
+ <head >
11
+ <meta http-equiv =" Content-Type" content =" text/html; charset=GB18030" >
12
+ <title >result</title >
13
+ <meta http-equiv =”pragma” content =”no-cache” >
14
+ <meta http-equiv =”cache-control” content =”no-cache” >
15
+ <meta http-equiv =”expires” content =”0” >
16
+ </head >
17
+ <body ><h3 >扫描结果:</h3 >
18
+ </body >
19
+ <%
20
+ List result = (ArrayList )request. getAttribute(" result" );
21
+ for (int i= 0 ;i<= result. size()- 1 ;i++ ){% >
22
+ <br ><% out. print(result. get(i)); % >
23
+ <% } % >
24
+
25
+ </html >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ < html >
3
+ < head >
4
+ < meta http-equiv ="Content-Type " content ="text/html; charset=GB18030 ">
5
+ < title > Jshint扫描</ title >
6
+ </ head >
7
+ < script type ="text/javascript ">
8
+ // 验证输入不为空
9
+ function checkForm ( form ) {
10
+
11
+ if ( form . url . value == "" ) {
12
+ alert ( "SVN地址不能为空!" ) ;
13
+ form . url . focus ( ) ;
14
+ return false ;
15
+ }
16
+ if ( form . url . value . contains ( ".js" ) ) {
17
+ alert ( "url应该是一个目录!" ) ;
18
+ form . url . focus ( ) ;
19
+ return false ;
20
+ }
21
+ if ( form . username . value == "" ) {
22
+ alert ( "用户名不能为空!" ) ;
23
+ form . username . focus ( ) ;
24
+ return false ;
25
+ }
26
+ if ( form . password . value == "" ) {
27
+ alert ( "密码不能为空!" ) ;
28
+ form . password . focus ( ) ;
29
+ return false ;
30
+ }
31
+ return true ;
32
+ }
33
+ </ script >
34
+ < body >
35
+ < h3 > 输入需要扫描js文件的SVN路径:< h3 > < h5 > 如:http://svn.app.taobao.net/repos/malldetail/trunk/malldetail/assets/4.0b/tabbar</ h5 >
36
+ < br >
37
+ < form action ="login.jsp " method ="post " onsubmit ="return checkForm(this); ">
38
+
39
+ SVN地址:< input type ="text " name ="url " title ="路径下文件夹层级最好少一点,不然扫描工程会很慢~ " style ="width: 515px; "> < br >
40
+ < br > 用户名:< input type ="text " name ="username "> < br > < br >
41
+ 密码:< input type ="password " name ="password "> < br > < br >
42
+ < input type ="submit " value ="登录 " name ="submit1 "> < input
43
+ type ="reset " value ="重置 " name ="reset1 ">
44
+ </ form >
45
+ </ body >
46
+ </ html >
Original file line number Diff line number Diff line change
1
+ package fileUtil ;
2
+
3
+ import java .io .BufferedReader ;
4
+ import java .io .File ;
5
+ import java .io .FileInputStream ;
6
+ import java .io .IOException ;
7
+ import java .io .InputStreamReader ;
8
+ import java .util .ArrayList ;
9
+
10
+
11
+
12
+ public class fileManager {
13
+
14
+ static ArrayList <String > list = new ArrayList <String >();
15
+ // ¶ÁÎļþ
16
+ public ArrayList <String > readFileByLines (String fileName ,String URL ) {
17
+ list .clear ();
18
+ File file = new File (fileName );
19
+ BufferedReader reader = null ;
20
+ String url = URL .substring (5 );
21
+
22
+ try {
23
+ InputStreamReader read = new InputStreamReader (new FileInputStream (file ),"UTF-8" );
24
+ reader = new BufferedReader (read );
25
+ String tempString = null ;
26
+ int line = 1 ;
27
+
28
+ while ((tempString = reader .readLine ()) != null ) {
29
+ // ÏÔʾÐкÅ
30
+ //System.out.println("line " + line + ": " + tempString);
31
+ if (tempString .indexOf ("\\ " )!= -1 ){
32
+ int index1 = tempString .indexOf ("\\ " );
33
+ int index2 = tempString .indexOf ("\\ " ,index1 + 1 );
34
+ list .add (url + tempString .substring (index2 ));
35
+ line ++;
36
+ }else {
37
+ list .add (tempString );
38
+ line ++;
39
+ }
40
+ }
41
+ reader .close ();
42
+ } catch (IOException e ) {
43
+ e .printStackTrace ();
44
+ } finally {
45
+ if (reader != null ) {
46
+ try {
47
+ reader .close ();
48
+ } catch (IOException e ) {
49
+ }
50
+ }
51
+ }
52
+ return list ;
53
+ }
54
+
55
+ }
Original file line number Diff line number Diff line change
1
+ package svnUtil ;
2
+
3
+ public class SVNproperty {
4
+ private String Url ;
5
+ private String name ;
6
+ private String passwd ;
7
+
8
+ public SVNproperty (String Url ,String name ,String passwd ){
9
+ this .Url = Url ;
10
+ this .name = name ;
11
+ this .passwd = passwd ;
12
+ }
13
+
14
+ public String getUrl () {
15
+ return Url ;
16
+ }
17
+ public void setUrl (String url ) {
18
+ this .Url = url ;
19
+ }
20
+ public String getName () {
21
+ return name ;
22
+ }
23
+ public void setName (String name ) {
24
+ this .name = name ;
25
+ }
26
+ public String getPasswd () {
27
+ return passwd ;
28
+ }
29
+ public void setPasswd (String passwd ) {
30
+ this .passwd = passwd ;
31
+ }
32
+
33
+ }
You can’t perform that action at this time.
0 commit comments