Code Monkey home page Code Monkey logo

Comments (10)

sbraconnier avatar sbraconnier commented on May 12, 2024

The build was indeed broken, but not because of the missing dependencies from the stack trace you posted here. I have fixed the broken build, but I doubt it will resolve your issue. Could you please retry with my latest commit and if the problem is still there, could you please tell me what is the exact command you used to build the project. Thanks!

from jodconverter.

javydreamercsw avatar javydreamercsw commented on May 12, 2024

Trying to build after pulling changes.

The command I use is:

gradle build

I will let you know if it works or not.

from jodconverter.

sbraconnier avatar sbraconnier commented on May 12, 2024

When using gradle, you use the (gradle) distribution installed on your OS (according to the configured PATH). Try this instead:

gradlew build

which will use the gradle wrapper that comes with the project.

from jodconverter.

javydreamercsw avatar javydreamercsw commented on May 12, 2024

Still got same issue. Might be something locally at work.

from jodconverter.

sbraconnier avatar sbraconnier commented on May 12, 2024

This seems to be similar to your problem. I would try this answer if I were you:

http://stackoverflow.com/a/25243438

from jodconverter.

javydreamercsw avatar javydreamercsw commented on May 12, 2024

Tried at home and got past that but still was unable to build after checking out latest:

:jodconverter-cli:spotlessJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jodconverter-cli:spotlessJava'.
> The following files had format violations:
      jodconverter-cli/src/integTest/java/org/artofsolving/jodconverter/cli/ConvertTest.java
          @@ -1,69 +1,69 @@
          -/*\r\n
          - * Copyright 2004 - 2012 Mirko Nasato and contributors\r\n
          - *           2016 - 2017 Simon Braconnier and contributors\r\n
          - *\r\n
          - * This file is part of JODConverter - Java OpenDocument Converter.\r\n
          - *\r\n
          - * JODConverter is an Open Source software: you can redistribute it and/or\r\n
          - * modify it under the terms of either (at your option) of the following\r\n
          - * licenses:\r\n
          - *\r\n
          - * 1. The GNU Lesser General Public License v3 (or later)\r\n
          - *    http://www.gnu.org/licenses/lgpl-3.0.txt\r\n
          - * 2. The Apache License, Version 2.0\r\n
          - *    http://www.apache.org/licenses/LICENSE-2.0.txt\r\n
          - */\r\n
          -\r\n
          -package org.artofsolving.jodconverter.cli;\r\n
          -\r\n
          -import static org.junit.Assert.assertTrue;\r\n
          -\r\n
          -import java.io.File;\r\n
          -\r\n
          -import org.junit.Test;\r\n
          -\r\n
          -public class ConvertTest {\r\n
          -\r\n
          -  private static final String CONFIG_DIR = "src/integTest/resources/config/";\r\n
          -  private static final String SOURCE_FILE = "src/test/resources/documents/test.doc";\r\n
          -  private static final String OUTPUT_DIR = "test-output/" + ConvertTest.class.getSimpleName();\r\n
          -\r\n
          -  @Test\r\n
          -  public void convert() throws Exception {\r\n
          -\r\n
          -    final File inputFile = new File(SOURCE_FILE);\r\n
          -    final File outputFile = new File(OUTPUT_DIR, "convert.pdf");\r\n
          -\r\n
          -    Convert.main(new String[] {"-k", inputFile.getPath(), outputFile.getPath()});\r\n
          -\r\n
          -    assertTrue(outputFile.isFile() && outputFile.length() > 0);\r\n
          -  }\r\n
          -\r\n
          -  @Test\r\n
          -  public void convertWithMultipleFilters() throws Exception {\r\n
          -\r\n
          -    final File filterChainFile = new File(CONFIG_DIR + "filterchain_multiple.xml");\r\n
          -    final File inputFile = new File(SOURCE_FILE);\r\n
          -    final File outputFile = new File(OUTPUT_DIR, "convertconvertWithSingleFilters.pdf");\r\n
          -\r\n
      ... (90 more lines that didn't fit)
  Violations also present in:
      jodconverter-cli/src/main/java/org/artofsolving/jodconverter/cli/Convert.java
      jodconverter-cli/src/main/java/org/artofsolving/jodconverter/cli/CliConverter.java
      jodconverter-cli/src/main/java/org/artofsolving/jodconverter/cli/FilterChainBeanFactory.java
  Run 'gradlew spotlessApply' to fix these violations.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

from jodconverter.

sbraconnier avatar sbraconnier commented on May 12, 2024

from jodconverter.

javydreamercsw avatar javydreamercsw commented on May 12, 2024

I'll give it a try and yes I tried on Ubuntu.

from jodconverter.

javydreamercsw avatar javydreamercsw commented on May 12, 2024

Yes, that did the trick. On Gradle you should be able to detect the OS and run that command if needed.

from jodconverter.

sbraconnier avatar sbraconnier commented on May 12, 2024

from jodconverter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.