... | ... | @@ -17,15 +17,40 @@ The @-v@ or @--verbose@ flags result in additional messages and warnings being o |
|
|
Using the @-h@ option shows all of the options:
|
|
|
|
|
|
bc.. Usage: java -jar cssembed-x.y.z.jar [options] [input file]
|
|
|
|
|
|
|
|
|
Global Options
|
|
|
-h, --help Displays this information.
|
|
|
--charset <charset> Character set of the input file.
|
|
|
--mhtml Enable MHTML mode.
|
|
|
--mhtmlroot <root> Use <root> as the MHTML root for the file.
|
|
|
-v, --verbose Display informational messages and warnings.
|
|
|
--root <root> Prepends <root> to all relative URLs.
|
|
|
-o <file> Place the output into <file>. Defaults to stdout.
|
|
|
-h, --help Displays this information.
|
|
|
--charset <charset> Character set of the input file.
|
|
|
--mhtml Enable MHTML mode.
|
|
|
--mhtmlroot <root> Use <root> as the MHTML root for the file.
|
|
|
-v, --verbose Display informational messages and warnings.
|
|
|
--root <root> Prepends <root> to all relative URLs.
|
|
|
--skip-missing Don't throw an error for missing image files.
|
|
|
--max-uri-length len Maximum length for a data URI. Defaults to 32768.
|
|
|
--max-image-size size Maximum image size (in bytes) to convert.
|
|
|
-o <file> Place the output into <file>. Defaults to stdout.
|
|
|
|
|
|
h1. Ant Task Usage
|
|
|
|
|
|
Define the task
|
|
|
|
|
|
bc.. <taskdef
|
|
|
name="cssembed"
|
|
|
classname="net.nczonline.web.cssembed.CSSEmbedTask"
|
|
|
classpath="/path/to/cssembed.jar"
|
|
|
/>
|
|
|
|
|
|
p. then use it.
|
|
|
|
|
|
bc.. <cssembed
|
|
|
root="."
|
|
|
skipMissing="true"
|
|
|
maxImageSize="4096"
|
|
|
>
|
|
|
<fileset dir="." includes="**/*.css" />
|
|
|
</cssembed>
|
|
|
|
|
|
p. Attributes on the @cssembed@ task line up with the command-line arguments, simply replace @-@ with camelCase.
|
|
|
|
|
|
h1. Resolving Files
|
|
|
|
... | ... | |