Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation.
This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).
You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
or visit www.oracle.com if you need additional information or have any
questions.
Title: jrunscript
Language: Japanese
Date: 2013ǯ11��21��
SectDesc: ������ץƥ����ġ���
Software: JDK 8
Arch: ����
Part Number: E58103-01
Doc ID: JSSON
* Define some portability stuff
-----------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://bugs.debian.org/507673
http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------
* set default formatting
-----------------------------------------------------------------
disable hyphenation
disable justification (adjust text to left margin only)
-----------------------------------------------------------------
* MAIN CONTENT STARTS HERE *
-----------------------------------------------------------------
.\}
jrunscript [options] [arguments]
options
���ޥ�ɹԥ��ץ�����ץ����Ȥ��Ƥ���������
arguments
��������Ѥ����硢���ץ����ޤ��ϥ��ޥ��̾��ľ��˵��Ҥ��Ƥ��������������Ȥ��Ƥ���������
jrunscript���ޥ�ɤϡ�����˰�¸���ʤ����ޥ�ɹԥ�����ץȡ�������Ǥ���jrunscript�ϡ����÷�(read-eval-print)�⡼�ɤȥХå�(-f���ץ����)���⡼�ɤ�ξ���Υ�����ץȼ¹Ԥݡ��Ȥ��ޤ����ǥե���Ȥλ��Ѹ����JavaScript�Ǥ�����-l���ץ�������Ѥ����¾�θ�������Ǥ��ޤ���jrunscript���ޥ�ɤϡ�Java�ȥ�����ץȸ���Ȥ��̿�����Ѥ���õ��Ū�ʥץ���ߥ���������ݡ��Ȥ��ޤ���
-classpath path
������ץȤ�������������ɬ�פΤ��륯�饹���ե�����ξ����ޤ���
-cp path
-classpath path��Ʊ���Ǥ���
-Dname=value
Java�Υ����ƥࡦ�ץ�ѥƥ������ꤷ�ޤ���
-Jflag
flag��jrunscript���ޥ�ɤ��¹Ԥ���Ƥ���Java���ۥޥ����ľ���Ϥ��ޤ���
-I language
���ꤵ�줿������ץȸ������Ѥ��ޤ����ǥե���ȤǤ�JavaScript�����Ѥ���ޤ���¾�Υ�����ץȸ������Ѥ���ˤϡ�-cp�ޤ���-classpath���ץ�������Ѥ��ơ��б����륹����ץȡ������JAR�ե��������ꤹ��ɬ�פ�����ޤ���
-e script
���ꤵ�줿������ץȤ�ɾ�����ޤ������Υ��ץ�������Ѥ���С����ޥ�ɹԤˤ��٤Ƥ����ꤵ�줿1�ԥ�����ץȤ�¹ԤǤ��ޤ���
-encoding encoding
������ץȡ��ե�������ɼ����˻��Ѥ���ʸ�������ǥ�����ꤷ�ޤ���
-f script-file
���ꤵ�줿������ץȡ��ե�����(�Хå����⡼��)��ɾ�����ޤ���
-f -
ɸ�����Ϥ��饹����ץȤ��ɤ�ꡢ�����ɾ�����ޤ�(���÷��⡼��)��
-help
�إ�ס���å�������ɽ�����ƽ�λ���ޤ���
-?
�إ�ס���å�������ɽ�����ƽ�λ���ޤ���
-q
���Ѳ�ǽ�ʤ��٤ƤΥ�����ץȡ���������ɽ���������ȡ���λ���ޤ���
arguments��¸�ߤ��Ƥ��ơ�����-e��-f�Τ�����Υ��ץ�������Ѥ���ʤ��ä���硢�ǽ�ΰ�����������ץȡ��ե�����Ȥʤꡢ¾�ΰ�����¸�ߤ�����ϥ�����ץȤ��Ϥ���ޤ���arguments�ȡ�-e�ޤ���-f���ץ�����Ѥ���Ƥ����硢���٤Ƥ�arguments��������ץȤ��Ϥ���ޤ���arguments��-e��-f���ɤ��¸�ߤ��ʤ��ä����ϡ����÷��⡼�ɤ����Ѥ���ޤ���������ץȤ��饹����ץȰ�������Ѥ���ˤϡ�arguments�Ȥ���̾����String���Υ����ѿ�����Ѥ��ޤ���
.\}
jrunscript -e "print(\*(Aqhello world\*(Aq)" jrunscript -e "cat(\*(Aqhttp://www.example.com\*(Aq)"
.\}
jrunscript -l js -f test.js
.\}
jrunscript js> print(\*(AqHello World\en\*(Aq); Hello World js> 34 + 55 89.0 js> t = new java.lang.Thread(function() { print(\*(AqHello World\en\*(Aq); }) Thread[Thread-0,5,main] js> t.start() js> Hello World js>
test.js�ե�����ϥ�����ץȡ��ե�����Ǥ���arg1��arg2�����arg3�γư�����������ץȤ��Ϥ���ޤ���������ץȤ�arguments�������Ѥ��Ƥ����ΰ����˥��������Ǥ��ޤ���
.\}
jrunscript test.js arg1 arg2 arg3
JavaScript����Ѥ��Ƥ����硢�桼�������������ץȤ�ɾ���������ˡ�jrunscript���ޥ�ɤˤ�ä�������ȹ��ߴؿ�����ӥ��֥������Ȥ����������ޤ�(�����ˤĤ��Ƥϡ�����jrunscript JavaScript�ȹ��ߤ�API���ͤ˵��ܤ���Ƥ��ޤ�)��
http://docs.oracle.com/javase/7/docs/technotes/tools/share/jsdocs/overview-summary.html
'pl 8.5i 'bp