Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

ターミナルを使用したコードのインポート

ターミナルを使用して、コードをインポートする手順は次のとおりです。

  1. ターミナルを開きます。Windows のシステム・トレイで、キューブをクリックし、メニューの [ターミナル] をクリックします。

  2. ターミナルが正しいネームスペースでポイントされていることを確認します。この例では、USER ネームスペースが対象です。必要に応じて、zn コマンドを使用してネームスペースを変更します。

    
    SAMPLES>zn "user"
    USER>
    
    
  3. $SYSTEM.OBJ.Load メソッドを使用して、XML ファイルに格納されているクラスを Caché にロードしてコンパイルします。

    
    USER>Write $SYSTEM.OBJ.Load("C:\InterSystems\Cache\Dev\tutorials\security\Zen_Authenticate.xml","ck")
    Load started on 04/20/2011 10:27:15
    Loading file C:\InterSystems\Cache\Dev\Tutorials\security\Zen_Authenticate.xml as xml
    Imported class: SecurityTutorial.Application
    Imported class: SecurityTutorial.CreateDelegatedUsers
    Imported class: SecurityTutorial.HomePage
    Imported class: SecurityTutorial.LogIn, compiling 4 classes
    Compiling class SecurityTutorial.Application
    Compiling class SecurityTutorial.CreateDelegatedUsers
    Compiling class SecurityTutorial.HomePage
    Compiling class SecurityTutorial.LogIn
    Compiling routine SecurityTutorial.Application.1
    Compiling routine SecurityTutorial.CreateDelegatedUsers.1
    Compiling routine SecurityTutorial.HomePage.1
    Compiling routine SecurityTutorial.LogIn.1
    Load finished successfully.
    1
    USER>
    
    

    ck 引数によって、ロードされたクラスがコンパイルされ、生成されたソース・コードが保存されます。

FeedbackOpens in a new tab