Changeset 10678


Ignore:
Timestamp:
2005-10-03T16:45:10+13:00 (19 years ago)
Author:
kjdon
Message:

a few fixes for windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/build.xml

    r10676 r10678  
    284284mysql.installed.path=${mysql.installed.path} (this is the location of mysql if it is already installed)
    285285mysql.port=${mysql.port}
    286 If these are not acceptable, please change them and rerun this target. Continue [y/n]?" />
     286If these are not acceptable, please change them and rerun this target. Continue [y/n]? />
    287287    </input>
    288     <condition property="do.abort">
     288    <condition property="do.abort"> 
    289289      <equals arg1="n" arg2="${properties.ok}"/>
    290290    </condition>
     
    614614      </and>
    615615    </condition>
    616     <condition property="mysql.islocal.nopassword">
     616     <condition property="mysql.islocal.usepassword.unix">
     617      <and>
     618    <isset property="mysql.islocal.usepassword"/>
     619    <isset property="current.os.isunix"/>
     620      </and>
     621    </condition>
     622   <condition property="mysql.islocal.nopassword">
    617623      <and>
    618624    <isset property="mysql.islocal"/>
     
    809815  </target>
    810816 
    811   <target name="stop-mysql-use-password-linux" depends="init" if="mysql.islocal.usepassword">
     817  <target name="stop-mysql-use-password-linux" depends="init" if="mysql.islocal.usepassword.unix">
    812818    <echo>At the password prompt, enter the mysql root password.</echo>
    813819    <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}"
     
    821827 
    822828  <target name="stop-mysql-use-password-windows" depends="init" if="mysql.islocal.usepassword.windows">
    823     <andcall target="get-mysql-root-password"/>
     829    <!--<antcall target="get-mysql-root-password"/>
     830    antcall doesn't set the property in teh callign project. if put this in the depends list, it will always be called, even if not windows. so copy it in here.-->
     831     <condition property="ask.root.password">
     832      <or>
     833    <not>
     834      <isset property="mysql.root.password"/>
     835    </not>
     836    <equals arg1="" arg2="${mysql.root.password}"/>
     837      </or>
     838    </condition>
     839    <getuserandpassword message="Please specify the password for the root mysql user: this is to secure your database." if="ask.root.password" username="root" pwordproperty="mysql.root.password"/>
    824840    <!-- on windows it doesn't work unless the password is specified here -->
    825841    <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}"
Note: See TracChangeset for help on using the changeset viewer.