Cannot find the mydevenv. BAT file?

Source: Internet
Author: User

Compiling adempiere 360lts prompts that the utils_dev \ mydevenv. BAT file is required. This file is the adempiere initialization compiling environment:

 
@ Call .. \ utils_dev \ mydevenv. Bat @ if not% Adempiere_env % = y goto nobuild

 

Adempiere prompts you to use mydevenvtemplate. BAT as the template of mydevenv. BAT:

 
: Nobuild @ echo check mydevenv. BAT (copy from mydevenvtemplate. BAT)

 

However, the file mydevenvtemplate. Bat cannot be found in the 360lts source code package, so I searched the internet for the file:

@ Rem  My Development Environment @ Rem @ Rem  This script sets variable for compiling adempiere from source @Rem @ Rem @ Rem  $ Header:/cvsroot/adempiere/utils_dev/mydevenvtemplate. bat, V 1.19 2005/09/10 01:51:13 jjanke exp $  @  Rem  Check the following parameters: @ Rem  -------------------------------  @  Rem  Set Java home @ Set Java_home = c: \ ProgramFiles \ Java \ jdk1.5. 0_04 @  If   Not   Exist "% Java_home % \ bin" Echo "** Java_home not found" @  Set   Path = % Java_home % \ bin; % Path  % @  Rem  Set adempiere source directory @ Set Adempiere_source = c: \ adempiere \Adempiere-All @  If   Not   Exist "% Adempiere_source %" Echo "** Adempiere_source not found" @  Rem  Passwords for the keystore @ Set Keytool_pass = % Key_password % @  If "% Keytool_pass %" = "" Set Keytool_pass = Mypassword @ Rem  Keystore & FTP Password @ Set Ant_properties =-dpassword = % keytool_pass %-dftppassword = % Ftp_password % @  Rem  Ant to send email after completion-change or delete @ Set Ant_properties = % ant_properties %-dmaillogger. mailhost = xxx-dmaillogger. From = XXXX-dmaillogger. Failure. To = XXXX-dmaillogger. Success. To = XXXX @  Rem  Automatic Installation-where adempiere will be unzipped @Set Adempiere_root = c :\ @  Rem  Automatic Installation-resulting home directory @ Set Adempiere_home = % Adempiere_root % adempiere @  Rem  Automatic Installation-share for final installers @ Set Adempiere_install = c :\ Install @  If   Not   Exist % Adempiere_install %Mkdir  % Adempiere_install % @  Rem  --------------------------------------------------------------- @ Rem  In most cases you don't need to change anything below this line @ Rem  If you need to define something manually do it abve this line, @ Rem  It shoshould work, since most variables are checked before set. @ Rem ---------------------------------------------------------------  @  Set Currentdir = % CD  % @  Rem  Set version @ Set Adempiere_version = Adempiere @  Set Adempiere_version_file = 315 @  Set Adempiere_vendor = Adempiere @  Set Encoding = UTF-8 @  Rem  Classpath @ If   Not   Exist "% Java_home % \ Lib \ tools. Jar" Echo "** Need full Java SDK **" @  Set Classpath = % classpath %; % java_home % \ Lib \ tools. Jar @  If   Not   Exist % Adempiere_source % \ tools \ Lib \ ant. JarEcho "** Ant. Jar not found **" @  Set Classpath = % classpath %; % adempiere_source % \ tools \ Lib \ ant. jar; % adempiere_source % \ tools \ Lib \ ant-launcher.jar; % adempiere_source % \ tools \ Lib \ ant-swing.jar; % adempiere_source % \ tools \ Lib \ ant-commons- Net . Jar; % adempiere_source % \ tools \ Lib \ commons- Net -1.4.0. Jar @  Rem  Set classpath = % classpath %; % adempiere_source % \ JBoss \ Lib \ xml-apis.jar  @  Rem Set XDoclet 1.1.2 Environment @ Set Xdoclet_home = % adempiere_source % \ Tools @  Rem  Java keystore for signing jars @ If   Not   Exist % Adempiere_source % \ keystore Mkdir % Adempiere_source % \ Keystore @  If   Exist "% Adempiere_source % \ keystore \ mykeystore" Goto Checkkeyvalue  : Createadempierekey  @ Echo No Java keystore found, creating... @  Rem  . @ Rem  This is the keystore for code signing. @ Rem  Replace it with the official certificate. @ Rem  Note that this is not the SSL certificate. @ Rem .  Set Keytool_dname = "cn = myname, ou = myname, O = myorg, L = mytown, St = mystate, C = us "" % java_home % \ bin \ keytool "-genkey-keyalg RSA-alias adempiere-dname % keytool_dname %-keypass % keytool_pass %-validity 365-keystore % adempiere_source % \ keystore \ Mykeystore-storepass % keytool_pass % "% Java_home % \ bin \ keytool"-selfcert-alias adempiere-dname % keytool_dname %-keypass % keytool_pass %-validity 180-keystore % adempiere_source % \ keystore \ Mykeystore-storepass % keytool_pass %  : Checkkeyvalue  @ "% Java_home % \ bin \ keytool"-list-alias adempiere-keystore % adempiere_source % \ keystore \Mykeystore-storepass % keytool_pass % @  If   Errorlevel 1 Goto   : Createadempierekey  @  Rem  Set adempiere_env for all other scripts. @ Set Adempiere_env = y

 

SetCodeCopy to utils_dev \ mydevenv. BAT and change it to your work environment.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.