빠른 질문 : 자바/건축 프로젝트를 컴파일 할 때 어떻게 output folder
에 (내 응용 프로그램에 대한 sqlite.jar
을 사용하고 있습니다) NetBeans
이 jar 파일을 복사 구성 할 수 있습니다?복사 항아리 컴파일/자바 건물 프로젝트
0
A
답변
1
NetBeans에서 "파일"탭으로 전환하십시오. 프로젝트 (빌드 될 프로젝트)를 확장하십시오.
build.xml
을 두 번 클릭하십시오.
당신이 이미하지 않은 경우
이<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar: JAR building
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="LED-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
아마 -post-jar
를 추천 할 것입니다 거기 당신이 무시할 수 있습니다 빌드 타겟의 수 ...에 대한 build.xml
문서들을하지만, 여기에 덤프입니다 이렇게, 나는 농부가 될 것이다 Ant copy
task
1
Ant 빌드를 사용하십시오. IDE를 사용하여 jar를 만드는 것과 비교하면 더 낫습니다.
관련 문제
- 1. 호 건물 Xcode 프로젝트
- 2. 건물 프로젝트 오류
- 3. 메이븐과 건물 코코아 프로젝트
- 4. 건물 Xcode 프로젝트 10.10
- 5. OpenCV의 프로젝트 - opencv.hpp 건물 문제
- 6. 프로젝트 건물 성공적으로 이클립스하지만 IntelliJ에
- 7. 항아리
- 8. JBoss buildpath, 프로젝트 삭제 외부 항아리
- 9. Java 프로젝트 빌드 항아리 및 depenedencies
- 10. AppEngine Eclipse의 Java 프로젝트 - 포함 할 항아리?
- 11. 이클립스에서 안드로이드 프로젝트 용 항아리 만들기
- 12. 안드로이드 이클립스에서 프로젝트 구성 다음 한 항아리
- 13. 프로젝트 항아리 포장, 프로젝트 클래스 경로 생성, 목표
- 14. 비주얼 스튜디오의 installshiled 프로젝트 건물 오류가
- 15. 항아리 내 항아리 참조
- 16. WEB-INF - 항아리 항아리
- 17. Gradle을이 - 항아리
- 18. TeamCity의 루트에 프로젝트 복사
- 19. 데이터베이스 프로젝트 복사 테이블
- 20. xCode 프로젝트 복사
- 21. VS2003 : 건물 솔루션으로 문제
- 22. ... 항아리
- 23. 항아리
- 24. 외부 항아리
- 25. 항아리 라이브러리
- 26. 복사 팀 프로젝트 컬렉션 TFS2012
- 27. Gradle - jars를 프로젝트 폴더에 복사
- 28. 서로 다른 컴퓨터간에 프로젝트 복사
- 29. xcode 다른 컴퓨터에 프로젝트 복사
Erm ... 나는 그것이 내가 필요로하는 것이라고 생각하지 않는다. 출력 된 폴더에 컴파일 된 다른 jar 파일을 복사하면됩니다. – NewProger
Netbeans은 빌더로서 Ant를 사용합니다. – MadProgrammer