Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
varanus
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
navigators
varanus
Commits
83f36e40
Commit
83f36e40
authored
Nov 08, 2017
by
Ricardo Fonseca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved cleaning code
parent
154ac874
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
19 deletions
+56
-19
build.xml
build.xml
+26
-15
clean.sh
network-manager/clean.sh
+23
-0
clean.sh
network-visualiser/clean.sh
+7
-4
No files found.
build.xml
View file @
83f36e40
...
...
@@ -6,22 +6,27 @@
<include
file=
"collector/build.xml"
as=
"collector"
/>
<include
file=
"xml-proxy/build.xml"
as=
"xmlproxy"
/>
<property
name=
"netmanager.clean"
location=
"${basedir}/network-manager/clean.sh"
/>
<property
name=
"netvisualiser.clean"
location=
"${basedir}/network-visualiser/clean.sh"
/>
<target
name=
"help"
>
<echo>
Specify one of these targets:
compile-sdncontroller : compiles the SDN Controller application
compile-collector : compiles the Collector application
compile-xmlproxy : compiles the XML Proxy application
compile-all : compiles all applications
pack-sdncontroller : compiles and packs the SDN Controller into a jar file
pack-collector : compiles and packs the Collector into a jar file
pack-xmlproxy : compiles and packs the XML Proxy into a jar file
pack-all : compiles and packs all applications
clean-sdncontroller : cleans SDN Controller built files and directories
clean-collector : cleans Collector built files and directories
clean-xmlproxy : cleans XML Proxy built files and directories
clean-all : cleans all applications
compile-sdncontroller : compiles the SDN Controller
compile-collector : compiles the Collector
compile-xmlproxy : compiles the XML Proxy
compile-all : compiles the SDN Controller, Collector and XML Proxy
pack-sdncontroller : compiles and packs into a jar file the SDN Controller
pack-collector : compiles and packs into a jar file the Collector
pack-xmlproxy : compiles and packs into a jar file the XML Proxy
pack-all : compiles and packs into jar files the SDN Controller, Collector and XML Proxy
clean-sdncontroller : removes any built files or directories of the SDN Controller
clean-collector : removes any built files or directories of the Collector
clean-xmlproxy : removes any built files or directories of the XML Proxy
clean-netmanager : removes any built files or directories of the Network Manager
clean-netvisualiser : removes any built files or directories of the Network Visualiser
clean-all : removes any built files or directories of all applications
</echo>
</target>
...
...
@@ -38,7 +43,13 @@
<target
name=
"clean-sdncontroller"
depends=
"sdncontroller.clean"
/>
<target
name=
"clean-collector"
depends=
"collector.clean"
/>
<target
name=
"clean-xmlproxy"
depends=
"xmlproxy.clean"
/>
<target
name=
"clean-all"
depends=
"clean-sdncontroller,clean-collector,clean-xmlproxy"
/>
<target
name=
"clean-netmanager"
>
<exec
executable=
"${netmanager.clean}"
/>
</target>
<target
name=
"clean-netvisualiser"
>
<exec
executable=
"${netvisualiser.clean}"
/>
</target>
<target
name=
"clean-all"
depends=
"clean-sdncontroller,clean-collector,clean-xmlproxy,clean-netmanager,clean-netvisualiser"
/>
</project>
network-manager/clean.sh
0 → 100755
View file @
83f36e40
#!/usr/bin/env bash
abort
()
{
if
[
-n
"
$1
"
]
;
then
printf
"%s
\n
"
"
$1
"
>
&2
fi
exit
1
}
msg
()
{
if
[
-n
"
$1
"
]
;
then
printf
"%s
\n
"
"
$1
"
fi
}
LOCAL_DIR
=
"
$(
readlink
-f
"
$(
dirname
"
$0
"
)
"
)
"
if
cd
"
$LOCAL_DIR
"
;
then
msg
"Cleaning built files..."
find
.
-name
"*.pyc"
-exec
rm
-vf
{}
\;
else
abort
"Error: could not clean built files"
fi
network-visualiser/clean.sh
View file @
83f36e40
...
...
@@ -15,9 +15,12 @@ msg() {
LOCAL_DIR
=
"
$(
readlink
-f
"
$(
dirname
"
$0
"
)
"
)
"
if
cd
"
$LOCAL_DIR
/catalina"
;
then
rm
-rf
"./logs"
rm
-rf
"./temp"
rm
-rf
"./webapps/visualiser"
rm
-rf
"./work"
msg
"Cleaning built files..."
rm
-rfv
"./logs"
rm
-rfv
"./temp"
rm
-rfv
"./webapps/visualiser"
rm
-rfv
"./work"
else
abort
"Error: could not clean built files"
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment