-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathcopy_node.xml
34 lines (29 loc) · 1.36 KB
/
copy_node.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0"?>
<!--
This program and the accompanying materials are
made available under the terms of the Eclipse Public License v2.0 which accompanies
this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
Copyright Contributors to the Zowe Project.
-->
<project name="copy_node" default="copynode" xmlns:if="ant:if" xmlns:unless="ant:unless">
<import file="common.xml"/>
<target name="copynode">
<mkdir dir="${user.dir}/../lib/node_modules/"/>
<copy todir="${user.dir}/../lib/node_modules/" if:set="isWindows"> <fileset dir ="${user.dir}/../nodeServer/node_modules" includes="**" />
</copy>
<exec if:set="isUnix" executable="sh">
<arg line="-c 'cp -pR ${user.dir}/../nodeServer/node_modules/* ${user.dir}/../lib/node_modules/'"/>
</exec>
<exec if:set="isZos" executable="sh">
<arg line="-c 'cp -pR ${user.dir}/../nodeServer/node_modules/* ${user.dir}/../lib/node_modules/'"/>
</exec>
</target>
</project>
<!--
This program and the accompanying materials are
made available under the terms of the Eclipse Public License v2.0 which accompanies
this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
Copyright Contributors to the Zowe Project.
-->