Ant The Definitive Guide phần 5

vì vậy thiết kế nhiệm vụ của chúng tôi nên tập trung vào tạo JAR, không có gì nhiều. Chúng ta có nên sau đó xác định nhu cầu, ví dụ, lọ unpackage, chúng tôi sẽ cần thực hiện trong những tính năng. Các công cụ dòng lệnh tạo ra một kho lưu trữ zip-tương thích với một thư mục đặc biệt gọi là META-INF. | Ant The Definitive Guide target all String N The name of the target to invoke in the new project. If omitted the new project s default target is invoked. Content nested property elements all Passes a property to the new build process. Example Usage Invoke the default target on util in the current directory ant antfile util Invoke the clean target on in the gui directory ant dir gui target clean Invoke another buildfile passing a new value for the builddir property. The value is explicitly set to utiloutput even if the property was defined elsewhere in the calling buildfile ant antfile util property name builddir value utiloutput ant See Also See the property task for allowable attributes on nested property elements. antcall all Invokes a target in the current buildfile. Properties are passed to the new target using nested param elements. An investigation of the Ant source code reveals that antcall instantiates and calls the ant task using the current buildfile. This means that a new project instance is created and properties work the same as they do for ant. Attributes inheritall boolean N Defines how properties are propagated to the new target. Defaults to true meaning all properties in the current build process are inherited by the new target. Prior to Ant 125 Ant The Definitive Guide this was the only behavior. When false properties set by users on the command line are the only ones passed to the new target. target all String Y The name of the target to call. Content nested param elements all Passes a property to the new build process. Each param element is implemented using the same class as the property task all property attributes are applicable. Example Usage Call the cleandir target and specify the dir-to-clean property target name clean antcall target cleandir param name dir-to-clean value javadocs antcall target Delete a directory specified by the

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.