-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconvert-to-maven-CollapsingPanel.sh
executable file
·50 lines (41 loc) · 1.39 KB
/
convert-to-maven-CollapsingPanel.sh
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
#!/bin/sh
# Steps to refactor jpdfbookmarks-src-2.5.2 to maven architecture
export BASE=`pwd`
#### module CollapsingPanel ####
# Create Maven Standard Directory Layout
mkdir -p $BASE/CollapsingPanel/src/main/java
mkdir -p $BASE/CollapsingPanel/src/main/resources
# module CollapsingPanel
cd $BASE/CollapsingPanel/src
# split the source code into two directories: java and resources
# copy the source code into two directories: java and resources
cp -R it main/java/
cp -R it main/resources/
# there will be no java files in resources directory ,
# so delete them all
cd $BASE/CollapsingPanel/src/main/resources/
find . -type f -iname \*.java -delete
# delete empty directory
find . -empty -type d -delete
# There will be no jpg, png, gif, ico, txt, properties, html, afm files in the java directory,
# so delete them
cd $BASE/CollapsingPanel/src/main/java/
find . -type f -iname \*.jpg -delete
find . -type f -iname \*.png -delete
find . -type f -iname \*.gif -delete
find . -type f -iname \*.ico -delete
find . -type f -iname \*.txt -delete
find . -type f -iname \*.properties -delete
find . -type f -iname \*.html -delete
find . -type f -iname \*.afm -delete
# delete empty directory
find . -empty -type d -delete
# delete src/it directories
cd $BASE/CollapsingPanel/src
rm -R ./it
# delete unnecessary directories and files.
cd $BASE/CollapsingPanel
rm -R nbproject
rm -R test
rm build.xml
rm manifest.mf