영어 번역 질문..

세벌의 이미지

http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html#enhance

Enhance the build file
빌드파일 향상시키기

Now we have a working buildfile we could do some enhancements: many time you are referencing the same directories, main-class and jar-name are hard coded, and while invocation you have to remember the right order of build steps.

이제 작동하는 빌드파일이 있으니 향상을 좀 할 수 있겠다. 같은 디렉토리 주클래스 자르이름이 하드코드 된 것을 여러번 참조하고 부르는 동안 빌드 단계의 정확한 순서를 기억해야 한다.

The first and second point would be addressed with properties, the third with a special property - an attribute of the -tag and the fourth problem can be solved using dependencies.

위에서 첫번째 두번째 세번째 네번째가 무엇을 가리키는지 잘 모르겠습니다.
처음 문장 번역한 것도 좀 엉성한데 고수님의 조언 부탁드립니다.

octaphial의 이미지

첫번째 = many times you are referencing the same directories
두번째 = many times you are referencing the same main-class
세번째 = many times you are referencing the same jar-name
네번째 = you have to remember the right order of build steps

인용하신 부분에서 좀 더 나아가 읽어보면 이해되는 부분이지요.

sandy의 이미지

의역을 하자면 이렇지 않을까요?

빌드 파일 개선

이제 이 빌드파일을 조금 개선해 봅시다:

1.같은 디렉토리를 여러번 참조하는 문제
2.같은 주클래스를 여러번 참조하는 문제
(many time you are referencing the same directories, main-class)

3.jar파일이름이 하드코딩된 문제.
(and jar-name are hard coded)

4.ant가 빌드 파일을 불러올때 정확한 빌드의 순서를 알야할 문제.
(and while invocation you have to remember the right order of build steps)

이들 문제는 빌드 파일에 project 태그를 추가하고
그 하위 태그로 첫번째 두번째 문제는 property 태그,
세번째 문제는 jar 태그, 네번째 문제는 depends 옵션을 사용함으로써
해결할수 있다.

1.같은 디렉토리를 여러번 참조하는 문제
 
    <property name="src.dir"     value="src"/>
    <property name="build.dir"   value="build"/>
    <property name="classes.dir" value="${build.dir}/classes"/>
    <property name="jar.dir"     value="${build.dir}/jar"/>
 
2.같은 주클래스를 여러번 참조하는 문제
 
 <property name="main-class"  value="oata.HelloWorld"/>
 
3.jar파일이름이 하드코딩된 문제.
 
 <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}">
            <manifest>
                <attribute name="Main-Class" value="${main-class}"/>
            </manifest>
  </jar>
 
4.ant가 빌드 파일을 불러올때  정확한 빌드의 순서를 알야할 문제.
 
    <target name="clean-build" depends="clean,jar"/>
    <target name="main" depends="clean,run"/>

..

세벌의 이미지

제 엉성한 영어 실력으로 번역한 것을 다듬어 주셔서 고맙습니다.
도움 말씀 참고해서 원문을 다시 보다가 생각한건데...
1. 같은 디렉토리를 여러번 참조
2. 주 클래스가 하드코딩
3. 자르 파일이름이 하드코딩
4. 부를 때 순서를 기억
이런 식으로 번역하는 것도 가능할지요?

http://sebul.sarang.net/

sandy의 이미지

..아마도 many time you are referencing the same directories, main-class and jar-name are hard coded
해석을 아직도 확신 못하시는듯 보이는 군요.

many time you are referencing the same directories

main-class and jar-name are hard coded

이렇게 구분되는 것 같다는 말씀이죠?
음 좀 살펴보니 말씀대로 :)
main-class and jar-name are hard coded가
맞겠네요

처음 올린 번역에서 조금 수정..:)

빌드 파일 개선
 
이제 이 빌드파일을 조금 개선해 봅시다:
 
1.같은 디렉토리를 여러번 참조하는 문제
(many time you are referencing the same directories)
2.main-class 가 하드코딩된 문제
3.jar파일이름이 하드코딩된 문제.
(main-class and jar-name are hard coded)
 
4.ant가 빌드 파일을 불러올때 정확한 빌드의 순서를 알야할 문제.
(and while invocation you have to remember the right order of build steps)
이들 문제는 빌드 파일에 project 태그를 추가하고
그 하위 태그로 첫번째 두번째 문제는 property 태그,
세번째 문제는 프로젝트 이름, 네번째 문제는 depends 옵션을 사용함으로써
해결할수 있다.

그런데 전 문맥상 개선된 빌드파일에서도 main-class가 여전히
하드코딩되어있다는 것때문에 처음 해석을 메인클래스 하드코딩은
아닌걸로 해석했었는데 이문젠 어떻게 보시는 지요?.

..

세벌의 이미지

위에서

property name="main-class"  value="oata.HelloWorld"

아래에서

attribute name="Main-Class" value="${main-class}"

저는 main-class의 값을 oata.HelloWorld에서 다른 값으로 바꿀 일이 생기더라도 위 부분 한 군데만 바꾸면 된다는 뜻으로 생각했는데...

이 예에서는 ${main-class}가 한 번 밖에 안 나타나니 결국 하드코드 된 것이라 생각하실 수도 있겠네요.

http://sebul.sarang.net/