All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.plugins.jsclosurecompiler.SpincastJsClosureCompilerManager.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






SpincastJsClosureCompilerManager (org.spincast:spincast-framework 1.14.0 API)












org.spincast.plugins.jsclosurecompiler

Interface SpincastJsClosureCompilerManager

    • Method Detail

      • compile

        String compile(String jsContent,
                       String... args)
        Compile/Minify javascript content, as a String.

        Read the options documentation.

        Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

        Returns:
        the compiled/minified javascript content.
      • compile

        String compile(String jsContent,
                       List<String> args)
        Compile/Minify javascript content, as a String.

        Read the options documentation.

        Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

        Returns:
        the compiled/minified javascript content.
      • compile

        String compile(File jsFile,
                       String... args)
        Compile/Minify a js file.

        Read the options documentation.

        Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

        Returns:
        the compiled/minified javascript content.
      • compile

        String compile(File jsFile,
                       List<String> args)
        Compile/Minify a js file.

        Read the options documentation.

        Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

        Returns:
        the compiled/minified javascript content.
      • compile

        String compile(List<File> jsFiles,
                       String... args)
        Compile/minify multiple .js files at a time and concatenate the result.

        Read the options documentation.

        Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

        Returns:
        the concatenated and compiled javascript content.
      • compile

        String compile(List<File> jsFiles,
                       List<String> args)
        Compile/minify multiple .js files at a time and concatenate the result.

        Read the options documentation.

        Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

        Returns:
        the concatenated and compiled javascript content.
      • compileCustom

        String compileCustom(String... args)
        Compile/Minify js/js files. Using this method, you are responsive to specify all the arguments passed to the closure compile .jar file (inlcuding the files to target). This can be useful if you want to compile files specified using globs patterns instead of having to specify them one by one.

        In other words, the executed command will be: java -jar closure-compiler.jar [ARGS] and you have to specify all the "[ARGS]".

        Read the options documentation.

        Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

        Returns:
        the compiled/minified javascript content.
      • compileCustom

        String compileCustom(List<String> args)
        Compile/Minify js/js files. Using this method, you are responsive to specify all the arguments passed to the closure compile .jar file (inlcuding the files to target). This can be useful if you want to compile files specified using globs patterns instead of having to specify them one by one.

        In other words, the executed command will be: java -jar closure-compiler.jar [ARGS] and you have to specify all the "[ARGS]".

        Read the options documentation.

        Note that you cannot use the "--js_output_file" option. The method will take care of it by itself.

        Returns:
        the compiled/minified javascript content.

Copyright © 2019. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy