간단한 qustion을 묻습니다. 나는 개미에 익숙하지 않고 jar 파일을 만들려고 노력 중이다. 나는 패키지 구조 내부의 파일특정 디렉토리의 병에 파일 패키징
jaxb.index
이
COM/MYCOM/mg의 난에이 파일을 패키징하는 것을 시도하고있다
/어댑터 내 항아리를 사용하여
<target name="dist" description="Create distributable jar file">
<jar destfile="${common.lib.dir}/${dist.file}">
<fileset dir="${build.classes.dir}"/>
<zipfileset
file="${sms.syn.dir}/jaxb.index">
</zipfileset>
</jar>
</target>
같은 패키지 com/mycom/mg/adapter에 jaxb.index 파일을 넣고 싶습니다.하지만 위의 코드를 사용하면 ant가 jar 파일의 루트에 추가됩니다. 누구든지 나를 도울 수 있습니까? 하나
<zipfileset
file="${sms.syn.dir}/jaxb.index" fullpath="com/mycom/mg/adapter">
</zipfileset>
나던 도움말을 사용
편집 .
감사합니다. AlexR 제안대로 fullpath 속성에 파일 이름 jaxb.index를 추가해야했습니다. – CuriousCoder