From 304ca0b12a91ecaa3eac81bc65e308031c2456b8 Mon Sep 17 00:00:00 2001 From: Marek Otahal Date: Thu, 5 Jan 2012 20:39:15 +0100 Subject: [PATCH] add support for development in netbeans imported project from eclipse, now netbeans will automatically recognize project folder, link needed libraries, build scripts etc. Just do Open project... Signed-off-by: Marek Otahal --- .gitignore | 3 + nb-build.xml | 74 +++ nbproject/build-impl.xml | 1123 +++++++++++++++++++++++++++++++++ nbproject/genfiles.properties | 8 + nbproject/project.properties | 169 +++++ nbproject/project.xml | 22 + 6 files changed, 1399 insertions(+) create mode 100644 nb-build.xml create mode 100644 nbproject/build-impl.xml create mode 100644 nbproject/genfiles.properties create mode 100644 nbproject/project.properties create mode 100644 nbproject/project.xml diff --git a/.gitignore b/.gitignore index 9fa982899..c21ca6b2c 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ DATA/ classes/ RELEASE/ /yacy.pid +/nbproject/private/ +/build/ +/dist/ \ No newline at end of file diff --git a/nb-build.xml b/nb-build.xml new file mode 100644 index 000000000..e5c8d4252 --- /dev/null +++ b/nb-build.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + Builds, tests, and runs the project yacy. + + + diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml new file mode 100644 index 000000000..81cced36a --- /dev/null +++ b/nbproject/build-impl.xml @@ -0,0 +1,1123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set htroot.dir + Must set api.dir + Must set env.dir + Must set yacy.dir + Must set bookmarks.dir + Must set ymarks.dir + Must set posts.dir + Must set tags.dir + Must set xbel.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + + + + + + java -cp "${run.classpath.with.dist.jar}" ${main.class} + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + Must select one file in the IDE or set profile.class + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties new file mode 100644 index 000000000..ae158eb93 --- /dev/null +++ b/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +nb-build.xml.data.CRC32=c1d508a7 +nb-build.xml.script.CRC32=812fb2fd +nb-build.xml.stylesheet.CRC32=28e38971@1.50.1.46 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=c1d508a7 +nbproject/build-impl.xml.script.CRC32=ec466945 +nbproject/build-impl.xml.stylesheet.CRC32=fcddb364@1.50.1.46 diff --git a/nbproject/project.properties b/nbproject/project.properties new file mode 100644 index 000000000..5d3d8bbe5 --- /dev/null +++ b/nbproject/project.properties @@ -0,0 +1,169 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +api.dir=${file.reference.htroot-api} +auxiliary.org-netbeans-modules-projectimport-eclipse-core.key=src=source;src=htroot;src=htroot/api;src=htroot/env;src=htroot/yacy;src=htroot/api/bookmarks;src=htroot/api/ymarks;src=htroot/api/bookmarks/posts;src=htroot/api/bookmarks/tags;src=htroot/api/bookmarks/xbel;file=lib/commons-logging-1.1.1.jar;file=lib/servlet-api.jar;file=lib/bzip2.jar;file=lib/J7Zip-modified.jar;file=lib/webcat-0.1-swf.jar;file=lib/activation.jar;file=lib/commons-jxpath-1.3.jar;file=lib/poi-3.6-20091214.jar;file=lib/poi-scratchpad-3.6-20091214.jar;file=lib/bcmail-jdk15-145.jar;file=lib/bcprov-jdk15-145.jar;file=lib/jsch-0.1.42.jar;file=lib/jakarta-oro-2.0.8.jar;file=lib/commons-codec-1.4.jar;file=lib/mysql-connector-java-5.1.12-bin.jar;file=lib/jcifs-1.3.15.jar;file=lib/metadata-extractor-2.4.0-beta-1.jar;file=lib/httpclient-4.1.2.jar;file=lib/httpcore-4.1.3.jar;file=lib/httpmime-4.1.2.jar;file=lib/apache-mime4j-0.6.jar;file=lib/commons-fileupload-1.2.2.jar;file=lib/log4j-1.2.16.jar;file=lib/json-simple-1.1.jar;file=lib/fontbox-1.6.0.jar;file=lib/jempbox-1.6.0.jar;file=lib/pdfbox-1.6.0.jar;file=lib/commons-io-2.0.1.jar;file=lib/xercesImpl.jar;file=lib/xml-apis.jar;file=lib/slf4j-api-1.6.1.jar;file=lib/slf4j-jdk14-1.6.1.jar;file=lib/commons-httpclient-3.1.jar;file=lib/geronimo-stax-api_1.0_spec-1.0.1.jar;file=lib/jcl-over-slf4j-1.6.1.jar;file=lib/wstx-asl-3.2.7.jar;file=lib/apache-solr-solrj-3.4.0.jar;file=lib/icu4j-core.jar;output=gen; +auxiliary.org-netbeans-modules-projectimport-eclipse-core.project=. +auxiliary.org-netbeans-modules-projectimport-eclipse-core.timestamp=1325785600000 +bookmarks.dir=${file.reference.api-bookmarks} +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +buildfile=nb-build.xml +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/yacy.jar +dist.javadoc.dir=${dist.dir}/javadoc +env.dir=${file.reference.htroot-env} +excludes=api/,env/,processing/domaingraph/applet/,yacy/,api/bookmarks/,api/ymarks/,api/bookmarks/posts/,api/bookmarks/tags/,api/bookmarks/xbel/,bookmarks/,ymarks/,bookmarks/posts/,bookmarks/tags/,bookmarks/xbel/,posts/,tags/,xbel/ +file.reference.activation.jar=lib/activation.jar +file.reference.apache-mime4j-0.6.jar=lib/apache-mime4j-0.6.jar +file.reference.apache-solr-solrj-3.4.0.jar=lib/apache-solr-solrj-3.4.0.jar +file.reference.api-bookmarks=htroot/api/bookmarks +file.reference.api-ymarks=htroot/api/ymarks +file.reference.bcmail-jdk15-145.jar=lib/bcmail-jdk15-145.jar +file.reference.bcprov-jdk15-145.jar=lib/bcprov-jdk15-145.jar +file.reference.bookmarks-posts=htroot/api/bookmarks/posts +file.reference.bookmarks-tags=htroot/api/bookmarks/tags +file.reference.bookmarks-xbel=htroot/api/bookmarks/xbel +file.reference.bzip2.jar=lib/bzip2.jar +file.reference.commons-codec-1.4.jar=lib/commons-codec-1.4.jar +file.reference.commons-fileupload-1.2.2.jar=lib/commons-fileupload-1.2.2.jar +file.reference.commons-httpclient-3.1.jar=lib/commons-httpclient-3.1.jar +file.reference.commons-io-2.0.1.jar=lib/commons-io-2.0.1.jar +file.reference.commons-jxpath-1.3.jar=lib/commons-jxpath-1.3.jar +file.reference.commons-logging-1.1.1.jar=lib/commons-logging-1.1.1.jar +file.reference.fontbox-1.6.0.jar=lib/fontbox-1.6.0.jar +file.reference.geronimo-stax-api_1.0_spec-1.0.1.jar=lib/geronimo-stax-api_1.0_spec-1.0.1.jar +file.reference.htroot-api=htroot/api +file.reference.htroot-env=htroot/env +file.reference.htroot-yacy=htroot/yacy +file.reference.httpclient-4.1.2.jar=lib/httpclient-4.1.2.jar +file.reference.httpcore-4.1.3.jar=lib/httpcore-4.1.3.jar +file.reference.httpmime-4.1.2.jar=lib/httpmime-4.1.2.jar +file.reference.icu4j-core.jar=lib/icu4j-core.jar +file.reference.J7Zip-modified.jar=lib/J7Zip-modified.jar +file.reference.jakarta-oro-2.0.8.jar=lib/jakarta-oro-2.0.8.jar +file.reference.jcifs-1.3.15.jar=lib/jcifs-1.3.15.jar +file.reference.jcl-over-slf4j-1.6.1.jar=lib/jcl-over-slf4j-1.6.1.jar +file.reference.jempbox-1.6.0.jar=lib/jempbox-1.6.0.jar +file.reference.jsch-0.1.42.jar=lib/jsch-0.1.42.jar +file.reference.json-simple-1.1.jar=lib/json-simple-1.1.jar +file.reference.log4j-1.2.16.jar=lib/log4j-1.2.16.jar +file.reference.metadata-extractor-2.4.0-beta-1.jar=lib/metadata-extractor-2.4.0-beta-1.jar +file.reference.mysql-connector-java-5.1.12-bin.jar=lib/mysql-connector-java-5.1.12-bin.jar +file.reference.pdfbox-1.6.0.jar=lib/pdfbox-1.6.0.jar +file.reference.poi-3.6-20091214.jar=lib/poi-3.6-20091214.jar +file.reference.poi-scratchpad-3.6-20091214.jar=lib/poi-scratchpad-3.6-20091214.jar +file.reference.rc1-htroot=htroot +file.reference.rc1-source=source +file.reference.servlet-api.jar=lib/servlet-api.jar +file.reference.slf4j-api-1.6.1.jar=lib/slf4j-api-1.6.1.jar +file.reference.slf4j-jdk14-1.6.1.jar=lib/slf4j-jdk14-1.6.1.jar +file.reference.webcat-0.1-swf.jar=lib/webcat-0.1-swf.jar +file.reference.wstx-asl-3.2.7.jar=lib/wstx-asl-3.2.7.jar +file.reference.xercesImpl.jar=lib/xercesImpl.jar +file.reference.xml-apis.jar=lib/xml-apis.jar +htroot.dir=${file.reference.rc1-htroot} +includes=** +jar.compress=false +javac.classpath=\ + ${file.reference.commons-logging-1.1.1.jar}:\ + ${file.reference.servlet-api.jar}:\ + ${file.reference.bzip2.jar}:\ + ${file.reference.J7Zip-modified.jar}:\ + ${file.reference.webcat-0.1-swf.jar}:\ + ${file.reference.activation.jar}:\ + ${file.reference.commons-jxpath-1.3.jar}:\ + ${file.reference.poi-3.6-20091214.jar}:\ + ${file.reference.poi-scratchpad-3.6-20091214.jar}:\ + ${file.reference.bcmail-jdk15-145.jar}:\ + ${file.reference.bcprov-jdk15-145.jar}:\ + ${file.reference.jsch-0.1.42.jar}:\ + ${file.reference.jakarta-oro-2.0.8.jar}:\ + ${file.reference.commons-codec-1.4.jar}:\ + ${file.reference.mysql-connector-java-5.1.12-bin.jar}:\ + ${file.reference.jcifs-1.3.15.jar}:\ + ${file.reference.metadata-extractor-2.4.0-beta-1.jar}:\ + ${file.reference.httpclient-4.1.2.jar}:\ + ${file.reference.httpcore-4.1.3.jar}:\ + ${file.reference.httpmime-4.1.2.jar}:\ + ${file.reference.apache-mime4j-0.6.jar}:\ + ${file.reference.commons-fileupload-1.2.2.jar}:\ + ${file.reference.log4j-1.2.16.jar}:\ + ${file.reference.json-simple-1.1.jar}:\ + ${file.reference.fontbox-1.6.0.jar}:\ + ${file.reference.jempbox-1.6.0.jar}:\ + ${file.reference.pdfbox-1.6.0.jar}:\ + ${file.reference.commons-io-2.0.1.jar}:\ + ${file.reference.xercesImpl.jar}:\ + ${file.reference.xml-apis.jar}:\ + ${file.reference.slf4j-api-1.6.1.jar}:\ + ${file.reference.slf4j-jdk14-1.6.1.jar}:\ + ${file.reference.commons-httpclient-3.1.jar}:\ + ${file.reference.geronimo-stax-api_1.0_spec-1.0.1.jar}:\ + ${file.reference.jcl-over-slf4j-1.6.1.jar}:\ + ${file.reference.wstx-asl-3.2.7.jar}:\ + ${file.reference.apache-solr-solrj-3.4.0.jar}:\ + ${file.reference.icu4j-core.jar} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.processorpath=\ + ${javac.classpath} +javac.source=1.5 +javac.target=1.5 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=true +platform.active=default_platform +posts.dir=${file.reference.bookmarks-posts} +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value +# or test-sys-prop.name=value to set system properties for unit tests): +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +source.reference.commons-fileupload-1.2.2.jar=/Users/admin/.m2/repository/commons-fileupload/commons-fileupload/1.2.2/commons-fileupload-1.2.2-sources.jar +source.reference.poi-3.6-20091214.jar=/Users/admin/.m2/repository/org/apache/poi/poi/3.6/poi-3.6-sources.jar +src.dir=${file.reference.rc1-source} +tags.dir=${file.reference.bookmarks-tags} +xbel.dir=${file.reference.bookmarks-xbel} +yacy.dir=${file.reference.htroot-yacy} +ymarks.dir=${file.reference.api-ymarks} diff --git a/nbproject/project.xml b/nbproject/project.xml new file mode 100644 index 000000000..dd6c5fc1b --- /dev/null +++ b/nbproject/project.xml @@ -0,0 +1,22 @@ + + + org.netbeans.modules.java.j2seproject + + + yacy + + + + + + + + + + + + + + + +