ターミナルを使用したコードのインポート
ターミナルを使用して、コードをインポートする手順は次のとおりです。
-
ターミナルを開きます。Windows のシステム・トレイで、キューブをクリックし、メニューの [ターミナル] をクリックします。
-
ターミナルが正しいネームスペースでポイントされていることを確認します。この例では、USER ネームスペースが対象です。必要に応じて、zn コマンドを使用してネームスペースを変更します。
SAMPLES>zn "user" USER>
-
$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 引数によって、ロードされたクラスがコンパイルされ、生成されたソース・コードが保存されます。