Skip to content

Commit 68ba663

Browse files
committed
Reorgnize the files.
1 parent 8ba7b1c commit 68ba663

File tree

1,079 files changed

+86584
-113215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,079 files changed

+86584
-113215
lines changed

.travis.yml

-27
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# Default ignored files
2-
/.idea/shelf/
3-
/.idea/workspace.xml
4-
5-
# Project exclude paths
6-
/.gradle/
7-
/build/
8-
/out/
9-
/out/production/classes/
10-
11-
# Datasource local storage ignored files
12-
/.idea/dataSources/
13-
dataSources.local.xml
14-
15-
# Editor-based HTTP Client requests
16-
/.idea/httpRequests/
17-
rest-client.private.env.json
18-
http-client.private.env.json
19-
.DS_Store
1+
# Default ignored files
2+
/.idea/shelf/
3+
/.idea/workspace.xml
4+
5+
# Project exclude paths
6+
/.gradle/
7+
/build/
8+
/out/
9+
/out/production/classes/
10+
11+
# Datasource local storage ignored files
12+
/.idea/dataSources/
13+
dataSources.local.xml
14+
15+
# Editor-based HTTP Client requests
16+
/.idea/httpRequests/
17+
rest-client.private.env.json
18+
http-client.private.env.json
19+
.DS_Store

MSFragger-GUI/build.gradle FragPipe-GUI/build.gradle

+20-20
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ plugins {
2525
id 'nebula.lint' version '19.0.1'
2626
}
2727

28-
group = 'com.github.chhh'
28+
group = 'org.nesvilab'
2929
version = '23.0-build13'
3030

3131
description = """FragPipe - run complete proteomics analyses from the GUI"""
@@ -42,7 +42,7 @@ tasks.withType(JavaCompile) {
4242
}
4343

4444
// Define the main class for the application
45-
def startClass = 'com.dmtavt.fragpipe.FragPipeMain'
45+
def startClass = 'org.nesvilab.fragpipe.FragPipeMain'
4646
application {
4747
mainClass = "${startClass}"
4848
}
@@ -57,17 +57,17 @@ repositories {
5757
sourceSets {
5858
main {
5959
java {
60-
srcDirs = ['src']
60+
srcDirs = ['src/main/java']
6161
}
6262
resources {
63-
srcDirs = ['resources', 'src']
63+
srcDirs = ['src/main/resources', 'src/main/java']
6464
excludes = ['*.java']
6565
}
6666
}
6767
// add tests sources here (this project didn't have them!)
6868
test {
69-
java.srcDirs = ['test']
70-
resources.srcDirs = ["test/resources"]
69+
java.srcDirs = ['src/test/java']
70+
resources.srcDirs = ["src/test/resources"]
7171
}
7272
}
7373

@@ -98,7 +98,7 @@ distributions {
9898

9999
dependencies {
100100
implementation 'com.github.albfernandez:juniversalchardet:2.4.0'
101-
implementation files("tools/batmass-io-1.34.4.jar")
101+
implementation files("../tools/batmass-io-1.34.4.jar")
102102
implementation 'com.google.code.gson:gson:2.10.1'
103103
implementation 'one.util:streamex:0.8.2'
104104
implementation 'org.jooq:jool-java-8:0.9.15'
@@ -144,53 +144,53 @@ test {
144144
}
145145
}
146146

147-
task listJars(group: 'chhh-help') {
147+
task listJars(group: 'fragpipe-help') {
148148
doLast {
149149
configurations.runtimeClasspath.each { File file -> println file.name }
150150
}
151151
}
152152

153-
task showImplDeps(type: DependencyReportTask, group: 'chhh-help',
153+
task showImplDeps(type: DependencyReportTask, group: 'fragpipe-help',
154154
description: "Show only implementation dependencies") {
155155
configurations = [project.configurations.implementation] as Set
156156
}
157157

158-
task createStartScripts(type: CreateStartScripts, group: "chhh-release") {
158+
task createStartScripts(type: CreateStartScripts, group: "fragpipe-release") {
159159
outputDir = file('build/pre-zip-release')
160160
mainClass = "${startClass}"
161161
applicationName = 'FragPipe'
162162
classpath = files("fragpipe-${project.version}.jar")
163163
}
164164

165-
task makeExeAndCopyToScripts(type: Copy, group: 'chhh-release', description: 'The .exe file ' +
165+
task makeExeAndCopyToScripts(type: Copy, group: 'fragpipe-release', description: 'The .exe file ' +
166166
'created requires to be placed in ./bin/ sub-direcotry of the final distribution and ' +
167167
'having fragpipe-x.x.x.jar in ./lib/ sub-directory') {
168168
dependsOn 'createExe'
169169
from getLayout().buildDirectory.dir('launch4j/bin').get()
170170
into getLayout().buildDirectory.dir('scripts').get().asFile
171171
}
172172

173-
task copyJre(type: Copy, group: 'chhh-release', description: "Copies JRE to build/install/${project.name}-${project.version}") {
173+
task copyJre(type: Copy, group: 'fragpipe-release', description: "Copies JRE to build/install/${project.name}-${project.version}") {
174174
from getLayout().buildDirectory.dir('../../jre/OpenJDK17U-jre_x64_windows_hotspot_17.0.10_7').get()
175175
into getLayout().buildDirectory.dir("install/${project.name}-${project.version}").get().asFile
176176
}
177177

178178
void createTaskCopyToInstallRelToBuild(String taskNameSuffix, String fromRelToBuild, String toRelToInstallProjname) {
179179
String taskName = "copy" + taskNameSuffix
180-
task (taskName, type: Copy, group: 'chhh-release', description: "Copies JRE") {
180+
task (taskName, type: Copy, group: 'fragpipe-release', description: "Copies JRE") {
181181
from getLayout().buildDirectory.dir("$fromRelToBuild").get()
182182
into getLayout().buildDirectory.dir("install/${project.name}-${project.version}/$toRelToInstallProjname").get().asFile
183183
exclude { details -> (details.file.name.endsWith('.tar.gz') and details.file.name.startsWith('cpython')) || (details.file.name == 'python.zip') || (details.file.name == 'python')
184184
}
185185
}
186186
}
187187

188-
createTaskCopyToInstallRelToBuild('Tools', "../tools", "tools")
189-
createTaskCopyToInstallRelToBuild('Workflows', "../workflows/", "workflows")
188+
createTaskCopyToInstallRelToBuild('Tools', "../../tools", "tools")
189+
createTaskCopyToInstallRelToBuild('Workflows', "../../workflows/", "workflows")
190190

191191
void createTaskUnpackToInstallRelToBuild(String taskNameSuffix, String fromRelToBuild, String toRelToInstallProjname) {
192192
String taskName = "unpack" + taskNameSuffix
193-
task (taskName, type: Copy, group: 'chhh-release', description: "Unzips $fromRelToBuild to $toRelToInstallProjname") {
193+
task (taskName, type: Copy, group: 'fragpipe-release', description: "Unzips $fromRelToBuild to $toRelToInstallProjname") {
194194
dependsOn 'copyTools'
195195
from zipTree(getLayout().buildDirectory.dir("$fromRelToBuild").get())
196196
// tarTree has issues with symlinks, so use zipTree
@@ -199,13 +199,13 @@ void createTaskUnpackToInstallRelToBuild(String taskNameSuffix, String fromRelTo
199199
}
200200
}
201201

202-
createTaskUnpackToInstallRelToBuild('PythonLinux', "../tools/python_Linux/python.zip", "tools/python_Linux")
203-
createTaskUnpackToInstallRelToBuild('PythonWindows', "../tools/python_Windows/python.zip", "tools/python_Windows")
202+
createTaskUnpackToInstallRelToBuild('PythonLinux', "../../tools/python_Linux/python.zip", "tools/python_Linux")
203+
createTaskUnpackToInstallRelToBuild('PythonWindows', "../../tools/python_Windows/python.zip", "tools/python_Windows")
204204

205205
void createTaskMakeReleaseZip(boolean withJre, String releaseDir, String startClass) {
206206
String taskName = "makeReleaseZip" + (withJre ? "WithJre" : "NoJre")
207207

208-
task (taskName, type: Zip, group: 'chhh-release') {
208+
task (taskName, type: Zip, group: 'fragpipe-release') {
209209
// for build on Windows, zip with execute bit
210210
// for a gradle Windows build, files requiring execute bit set (ELF and Unix shell scripts)
211211
// are zipped without execute bit. The default file mode is 0644
@@ -261,7 +261,7 @@ void createTaskMakeReleaseZip(boolean withJre, String releaseDir, String startCl
261261
createTaskMakeReleaseZip(true, releaseDir, startClass)
262262
createTaskMakeReleaseZip(false, releaseDir, startClass)
263263

264-
task makeReleaseZips(group: 'chhh-release') {
264+
task makeReleaseZips(group: 'fragpipe-release') {
265265
dependsOn('clean')
266266
dependsOn('makeReleaseZipNoJre')
267267
dependsOn('makeReleaseZipWithJre')
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,92 @@
1-
@rem
2-
@rem Copyright 2015 the original author or authors.
3-
@rem
4-
@rem Licensed under the Apache License, Version 2.0 (the "License");
5-
@rem you may not use this file except in compliance with the License.
6-
@rem You may obtain a copy of the License at
7-
@rem
8-
@rem https://www.apache.org/licenses/LICENSE-2.0
9-
@rem
10-
@rem Unless required by applicable law or agreed to in writing, software
11-
@rem distributed under the License is distributed on an "AS IS" BASIS,
12-
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
@rem See the License for the specific language governing permissions and
14-
@rem limitations under the License.
15-
@rem
16-
17-
@if "%DEBUG%"=="" @echo off
18-
@rem ##########################################################################
19-
@rem
20-
@rem Gradle startup script for Windows
21-
@rem
22-
@rem ##########################################################################
23-
24-
@rem Set local scope for the variables with windows NT shell
25-
if "%OS%"=="Windows_NT" setlocal
26-
27-
set DIRNAME=%~dp0
28-
if "%DIRNAME%"=="" set DIRNAME=.
29-
@rem This is normally unused
30-
set APP_BASE_NAME=%~n0
31-
set APP_HOME=%DIRNAME%
32-
33-
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
34-
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35-
36-
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37-
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38-
39-
@rem Find java.exe
40-
if defined JAVA_HOME goto findJavaFromJavaHome
41-
42-
set JAVA_EXE=java.exe
43-
%JAVA_EXE% -version >NUL 2>&1
44-
if %ERRORLEVEL% equ 0 goto execute
45-
46-
echo. 1>&2
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48-
echo. 1>&2
49-
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50-
echo location of your Java installation. 1>&2
51-
52-
goto fail
53-
54-
:findJavaFromJavaHome
55-
set JAVA_HOME=%JAVA_HOME:"=%
56-
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57-
58-
if exist "%JAVA_EXE%" goto execute
59-
60-
echo. 1>&2
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62-
echo. 1>&2
63-
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64-
echo location of your Java installation. 1>&2
65-
66-
goto fail
67-
68-
:execute
69-
@rem Setup the command line
70-
71-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72-
73-
74-
@rem Execute Gradle
75-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76-
77-
:end
78-
@rem End local scope for the variables with windows NT shell
79-
if %ERRORLEVEL% equ 0 goto mainEnd
80-
81-
:fail
82-
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83-
rem the _cmd.exe /c_ return code!
84-
set EXIT_CODE=%ERRORLEVEL%
85-
if %EXIT_CODE% equ 0 set EXIT_CODE=1
86-
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87-
exit /b %EXIT_CODE%
88-
89-
:mainEnd
90-
if "%OS%"=="Windows_NT" endlocal
91-
92-
:omega
1+
@rem
2+
@rem Copyright 2015 the original author or authors.
3+
@rem
4+
@rem Licensed under the Apache License, Version 2.0 (the "License");
5+
@rem you may not use this file except in compliance with the License.
6+
@rem You may obtain a copy of the License at
7+
@rem
8+
@rem https://www.apache.org/licenses/LICENSE-2.0
9+
@rem
10+
@rem Unless required by applicable law or agreed to in writing, software
11+
@rem distributed under the License is distributed on an "AS IS" BASIS,
12+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
@rem See the License for the specific language governing permissions and
14+
@rem limitations under the License.
15+
@rem
16+
17+
@if "%DEBUG%"=="" @echo off
18+
@rem ##########################################################################
19+
@rem
20+
@rem Gradle startup script for Windows
21+
@rem
22+
@rem ##########################################################################
23+
24+
@rem Set local scope for the variables with windows NT shell
25+
if "%OS%"=="Windows_NT" setlocal
26+
27+
set DIRNAME=%~dp0
28+
if "%DIRNAME%"=="" set DIRNAME=.
29+
@rem This is normally unused
30+
set APP_BASE_NAME=%~n0
31+
set APP_HOME=%DIRNAME%
32+
33+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
34+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35+
36+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38+
39+
@rem Find java.exe
40+
if defined JAVA_HOME goto findJavaFromJavaHome
41+
42+
set JAVA_EXE=java.exe
43+
%JAVA_EXE% -version >NUL 2>&1
44+
if %ERRORLEVEL% equ 0 goto execute
45+
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
51+
52+
goto fail
53+
54+
:findJavaFromJavaHome
55+
set JAVA_HOME=%JAVA_HOME:"=%
56+
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57+
58+
if exist "%JAVA_EXE%" goto execute
59+
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
65+
66+
goto fail
67+
68+
:execute
69+
@rem Setup the command line
70+
71+
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72+
73+
74+
@rem Execute Gradle
75+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76+
77+
:end
78+
@rem End local scope for the variables with windows NT shell
79+
if %ERRORLEVEL% equ 0 goto mainEnd
80+
81+
:fail
82+
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83+
rem the _cmd.exe /c_ return code!
84+
set EXIT_CODE=%ERRORLEVEL%
85+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
86+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87+
exit /b %EXIT_CODE%
88+
89+
:mainEnd
90+
if "%OS%"=="Windows_NT" endlocal
91+
92+
:omega
File renamed without changes.

0 commit comments

Comments
 (0)