Support > Repository > Features of Designer/Other tools > Build from the command line
ja | en

I will explain how to build from the command line. R7.9.2

Here, we will explain how to use in Windows OS.Please use the console when operating on Linux/Mac OS X.

Enter "cmd" in the "Start menu> Search program and file" column and execute it.(FIGS. 1 and 2)

Figure 1 Start menu
Fig. 2 Execute "cmd"

A command prompt is displayed, as shown in Figure 3.

Figure 3 Command Prompt
You can also execute "command prompt" directly without going through the start menu.

When the command prompt starts, move the current folder with the cd command.The destination is Wagby installation folder \ wagbydesigner \ bin.(Please read the installation folder properly.)

Fig. 4 Changing the current folder

Execute the command as follows.

java -Dwagbydesigner.root=..\webapps\wagbydesigner\ -cp ..\webapps\wagbydesigner\WEB-INF\classes;..\webapps\wagbydesigner\WEB-INF\env\provided-lib\servlet-api.jar;..\webapps\wagbydesigner\WEB-INF\lib\*
Figure 5 Command execution

"Full Build" will be done.Finally, if "BUILD SUCCESSFUL." Is displayed, the build will end.The wagbyapp folder has been recreated.

Figure 6 Building end

In the misc folder in the Wagby installation folder, build.xml is prepared.In the misc folder, execute as follows.

ant full
Figure 7 Calling from ant
Apache Ant must be installed separately.
The first "ant -version" running in Figure 7 is a command to check the version of Apache Ant used.If this command does not work properly, there is a problem with Ant installation.

Target description

It is described in build.xml as follows.If the project size is large, please change the memory specification by mxmem appropriately.

  <target name="init">
    <property name="mxmem" value="1024m"/>

  <target name="full" depends="init">
     <path id="build.lib">
       <pathelement location="../wagbydesigner/webapps/wagbydesigner/WEB-INF/classes"/>
       <pathelement location="../wagbydesigner/webapps/wagbydesigner/WEB-INF/env/provided-lib/servlet-api.jar" />
       <fileset dir="../wagbydesigner/webapps/wagbydesigner/WEB-INF/lib" includes="*.jar" />
     <java classpathref="build.lib"
       <jvmarg value="-Xmx${mxmem}"/>
       <sysproperty key="wagbydesigner.root" value="../webapps/wagbydesigner/"/>