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
a3e89227
Commit
a3e89227
authored
Jan 20, 2018
by
Ricardo Fonseca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Ant target for generating Eclipse config files
parent
482b0146
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
1 deletion
+111
-1
build.xml
build.xml
+8
-1
gen-eclipse-files.sh
gen-eclipse-files.sh
+103
-0
No files found.
build.xml
View file @
a3e89227
...
...
@@ -9,6 +9,8 @@
<property
name=
"netmanager.clean"
location=
"${basedir}/network-manager/clean.sh"
/>
<property
name=
"netvisualiser.clean"
location=
"${basedir}/network-visualiser/clean.sh"
/>
<property
name=
"geneclipsefiles"
location=
"${basedir}/gen-eclipse-files.sh"
/>
<target
name=
"help"
>
<echo>
Specify one of these targets:
compile-sdncontroller : compiles the SDN Controller
...
...
@@ -27,7 +29,8 @@
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>
eclipse : generates Eclipse IDE configuration files
</echo>
</target>
<target
name=
"compile-sdncontroller"
depends=
"sdncontroller.compile"
/>
...
...
@@ -51,5 +54,9 @@
</target>
<target
name=
"clean-all"
depends=
"clean-sdncontroller,clean-collector,clean-xmlproxy,clean-netmanager,clean-netvisualiser"
/>
<target
name=
"eclipse"
>
<exec
executable=
"${geneclipsefiles}"
/>
</target>
</project>
gen-eclipse-files.sh
0 → 100755
View file @
a3e89227
#!/usr/bin/env bash
BASE_DIR
=
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
VARANUS_PROJECT_FILE
=
"
${
BASE_DIR
}
/.project"
VARANUS_CLASSPATH_FILE
=
"
${
BASE_DIR
}
/.classpath"
NETMANAGER_PROJECT_FILE
=
"
${
BASE_DIR
}
/network-manager/.project"
NETMANAGER_PYTHON_PROJECT_FILE
=
"
${
BASE_DIR
}
/network-manager/.pydevproject"
echo
"Writing varanus project file:
$VARANUS_PROJECT_FILE
"
cat
>
"
$VARANUS_PROJECT_FILE
"
<<
EOF
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>varanus</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
EOF
echo
"Writing varanus classpath file:
$VARANUS_CLASSPATH_FILE
"
cat
>
"
$VARANUS_CLASSPATH_FILE
"
<<
EOF
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="sdncontroller/src/main/java"/>
<classpathentry kind="src" path="sdncontroller/src/main/resources"/>
<classpathentry kind="src" path="collector/src/main/java"/>
<classpathentry kind="src" path="mirroring-protocol/src/main/java"/>
<classpathentry kind="src" path="xml-proxy/src/main/java"/>
<classpathentry kind="src" path="info-protocol/src/main/java"/>
<classpathentry kind="src" path="config-protocol/src/main/java"/>
<classpathentry kind="src" path="utils/src/main/java"/>
<classpathentry kind="lib" path="common-lib/lib/commons-math3-3.6.1.jar" sourcepath="common-lib/lib/commons-math3-3.6.1-sources.jar"/>
<classpathentry kind="lib" path="common-lib/lib/findbugs-annotations-2.0.1.jar"/>
<classpathentry kind="lib" path="common-lib/lib/guava-13.0.1.jar" sourcepath="common-lib/lib/guava-13.0.1-sources.jar"/>
<classpathentry kind="lib" path="common-lib/lib/jackson-core-2.4.4.jar" sourcepath="common-lib/lib/jackson-core-2.4.4-sources.jar"/>
<classpathentry kind="lib" path="common-lib/lib/jackson-databind-2.4.4.jar" sourcepath="common-lib/lib/jackson-databind-2.4.4-sources.jar"/>
<classpathentry kind="lib" path="common-lib/lib/jgrapht-core-1.0.0-SNAPSHOT.jar" sourcepath="common-lib/lib/jgrapht-core-1.0.0-SNAPSHOT-sources.jar"/>
<classpathentry kind="lib" path="common-lib/lib/netty-all-4.0.31.Final.jar" sourcepath="common-lib/lib/netty-all-4.0.31.Final-sources.jar"/>
<classpathentry kind="lib" path="common-lib/lib/slf4j-api-1.6.4.jar" sourcepath="common-lib/lib/slf4j-api-1.6.4-sources.jar"/>
<classpathentry kind="lib" path="sdncontroller/lib/openflowj-2.1.0-patched-nicira.jar" sourcepath="sdncontroller/lib/openflowj-2.1.0-patched-nicira-sources.jar"/>
<classpathentry kind="lib" path="sdncontroller/lib/floodlight.jar" sourcepath="sdncontroller/lib/floodlight-sources.jar"/>
<classpathentry kind="lib" path="collector/lib/jackson-annotations-2.4.4.jar"/>
<classpathentry kind="lib" path="collector/lib/jnetpcap-1.4.r1425/jnetpcap.jar" sourcepath="collector/lib/jnetpcap-1.4.r1425/jnetpcap-src-1.4.r1425-1.zip">
<attributes>
<attribute name="javadoc_location" value="jar:platform:/resource/varanus/collector/lib/jnetpcap-1.4.r1425/jnetpcap-javadoc-1.4.r1425-1.zip!/jnetpcap-javadoc-1.4.r1425-1"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="collector/lib/logback-classic-1.0.0.jar"/>
<classpathentry kind="lib" path="collector/lib/logback-core-1.0.0.jar"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path=".eclipse-bin"/>
</classpath>
EOF
echo
"Writing network-manager project file:
$NETMANAGER_PROJECT_FILE
"
cat
>
"
$NETMANAGER_PROJECT_FILE
"
<<
EOF
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>network-manager</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.python.pydev.PyDevBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.python.pydev.pythonNature</nature>
</natures>
</projectDescription>
EOF
echo
"Writing network-manager python project file:
$NETMANAGER_PYTHON_PROJECT_FILE
"
cat
>
"
$NETMANAGER_PYTHON_PROJECT_FILE
"
<<
EOF
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?><pydev_project>
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
<path>/\
${
PROJECT_DIR_NAME
}
</path>
</pydev_pathproperty>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
</pydev_project>
EOF
echo
"<done>"
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