80 |
80 |
81 |
81 |
82 <h2>Target sf-package-source</h2> |
82 <h2>Target sf-package-source</h2> |
83 |
83 |
84 <p><b>Location</b></p> |
84 <p><b>Location</b></p> |
85 <p> <tt class="docutils literal"><a href="/D:/maintools/sf-config/common/build.xml#L470">D:\maintools\sf-config\common\build.xml:470:</a></tt> |
85 <p> <tt class="docutils literal"><a href="/d:/maintools/sf-config/common/build.xml#L470">d:\maintools\sf-config\common\build.xml:470:</a></tt> |
86 </p> |
86 </p> |
87 |
87 |
88 <p><b>Conditional execution</b></p> |
88 <p><b>Conditional execution</b></p> |
89 <p>No conditions on target execution.</p> |
89 <p>No conditions on target execution.</p> |
90 <hr/> |
90 <hr/> |
134 |
134 |
135 |
135 |
136 <h3>Source code</h3> |
136 <h3>Source code</h3> |
137 <pre> |
137 <pre> |
138 <target name="sf-package-source" depends="sf-preprocess-package-config"> |
138 <target name="sf-package-source" depends="sf-preprocess-package-config"> |
139 <!-- Firstly zip up src & rnd by package --> |
139 <!-- Firstly zip up rnd by package --> |
140 <antcall target="sf-zip-content"> |
140 <antcall target="sf-zip-content"> |
141 <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/> |
141 <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/> |
142 <param name="zip.target.name" value="src"/> |
142 <param name="zip.target.name" value="rnd"/> |
143 </antcall> |
143 </antcall> |
144 <!-- Then zip up src zips by layer --> |
|
145 <antcall target="sf-zip-content"> |
144 <antcall target="sf-zip-content"> |
146 <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/> |
145 <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/> |
147 <param name="zip.target.name" value="src-by-layer"/> |
146 <param name="zip.target.name" value="rnd-internal"/> |
148 </antcall> |
147 </antcall> |
|
148 <if> |
|
149 <istrue value="${sf.spec.package.src.enable}"/> |
|
150 <then> |
|
151 <echo message="INFO Packaging Source Repos"/> |
|
152 <antcall target="sf-zip-content"> |
|
153 <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/> |
|
154 <param name="zip.target.name" value="src"/> |
|
155 </antcall> |
|
156 <!-- Then zip up src zips by layer --> |
|
157 <antcall target="sf-zip-content"> |
|
158 <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/> |
|
159 <param name="zip.target.name" value="src-by-layer"/> |
|
160 </antcall> |
|
161 </then> |
|
162 </if> |
149 </target> |
163 </target> |
150 </pre> |
164 </pre> |
151 |
165 |
152 |
166 |
153 <hr/> |
167 <hr/> |