You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by Apache Jenkins Server <je...@builds.apache.org> on 2017/05/15 01:07:21 UTC
Build failed in Jenkins: POI-DSL-OpenJDK #147
See <https://builds.apache.org/job/POI-DSL-OpenJDK/147/display/redirect?page=changes>
Changes:
[kiwiwings] #52117 - Invalid "last printed" summary field value - added helper method to identify undefined dates
HPSF: fixed uid listing in Section.toString()
HPSF: moved timestamp based "utility" methods to Filetime class
HPSF: preserve original datastream for unchanged property sets
[kiwiwings] removed invalid test file
------------------------------------------
[...truncated 447.15 KB...]
[echo] fill = null;
[echo] } else {
[echo] border = dxf.isSetBorder() ? new XSSFBorderFormatting(dxf.getBorder()) : null;
[echo] font = dxf.isSetFont() ? new XSSFFontFormatting(dxf.getFont()) : null;
[echo] if (dxf.isSetNumFmt()) {
[echo] CTNumFmt numFmt = dxf.getNumFmt();
[echo] number = new ExcelNumberFormat((int) numFmt.getNumFmtId(), numFmt.getFormatCode());
[echo] } else {
[echo] number = null;
[echo] }
[echo] fill = dxf.isSetFill() ? new XSSFPatternFormatting(dxf.getFill()) : null;
[echo] }
[echo] }
[echo]
[echo] public BorderFormatting getBorderFormatting() {
[echo] return border;
[echo] }
[echo]
[echo] public FontFormatting getFontFormatting() {
[echo] return font;
[echo] }
[echo]
[echo]
[echo] =====================================================
[echo] == File: <https://builds.apache.org/job/POI-DSL-OpenJDK/ws/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTableStyle.java>
[echo] =====================================================
[echo] package org.apache.poi.xssf.usermodel;
[echo]
[echo] import java.util.EnumMap;
[echo] import java.util.Map;
[echo]
[echo] import org.apache.poi.ss.usermodel.DifferentialStyleProvider;
[echo] import org.apache.poi.ss.usermodel.TableStyle;
[echo] import org.apache.poi.ss.usermodel.TableStyleType;
[echo] import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDxf;
[echo] import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDxfs;
[echo] import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyle;
[echo] import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyleElement;
[echo]
[echo] /**
[echo] * {@link TableStyle} implementation for styles defined in the OOXML styles.xml.
[echo] * Also used for built-in styles via dummy XML generated from presetTableStyles.xml.
[echo] */
[echo] public class XSSFTableStyle implements TableStyle {
[echo]
[echo] private final String name;
[echo] private final Map<TableStyleType, DifferentialStyleProvider> elementMap = new EnumMap<TableStyleType, DifferentialStyleProvider>(TableStyleType.class);
[echo]
[echo] /**
[echo] * @param dxfs
[echo] * @param tableStyle
[echo] */
[echo] public XSSFTableStyle(CTDxfs dxfs, CTTableStyle tableStyle) {
[echo] this.name = tableStyle.getName();
[echo] for (CTTableStyleElement element : tableStyle.getTableStyleElementList()) {
[echo] TableStyleType type = TableStyleType.valueOf(element.getType().toString());
[echo] DifferentialStyleProvider dstyle = null;
[echo] if (element.isSetDxfId()) {
[echo] int idx = (int) element.getDxfId() -1;
[echo] CTDxf dxf;
[echo] if (idx >= 0 && idx < dxfs.getCount()) {
[echo] dxf = dxfs.getDxfArray(idx);
[echo] } else {
[echo] dxf = null;
[echo] }
[echo] if (dxf != null) dstyle = new XSSFDxfStyleProvider(dxf);
[echo] }
[echo] elementMap.put(type, dstyle);
[echo] }
[echo] }
[echo]
[echo] public String getName() {
[echo] return name;
[echo] }
[echo]
[echo] public DifferentialStyleProvider getStyle(TableStyleType type) {
[echo]
[echo] =====================================================
[echo] == File: <https://builds.apache.org/job/POI-DSL-OpenJDK/ws/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTableStyleInfo.java>
[echo] =====================================================
[echo] package org.apache.poi.xssf.usermodel;
[echo]
[echo] import org.apache.poi.ss.usermodel.TableStyle;
[echo] import org.apache.poi.ss.usermodel.TableStyleInfo;
[echo] import org.apache.poi.xssf.model.StylesTable;
[echo] import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyleInfo;
[echo]
[echo] /**
[echo] * Wrapper for the CT class, to cache values and add style lookup
[echo] */
[echo] public class XSSFTableStyleInfo implements TableStyleInfo {
[echo]
[echo] private final boolean columnStripes;
[echo] private final boolean rowStripes;
[echo] private final boolean firstColumn;
[echo] private final boolean lastColumn;
[echo] private final TableStyle style;
[echo]
[echo] /**
[echo] * @param stylesTable
[echo] * @param tableStyleInfo
[echo] */
[echo] public XSSFTableStyleInfo(StylesTable stylesTable, CTTableStyleInfo tableStyleInfo) {
[echo] this.columnStripes = tableStyleInfo.getShowColumnStripes();
[echo] this.rowStripes = tableStyleInfo.getShowRowStripes();
[echo] this.firstColumn = tableStyleInfo.getShowFirstColumn();
[echo] this.lastColumn = tableStyleInfo.getShowLastColumn();
[echo] this.style = stylesTable.getTableStyle(tableStyleInfo.getName());
[echo] }
[echo]
[echo] public boolean isShowColumnStripes() {
[echo] return columnStripes;
[echo] }
[echo]
[echo] public boolean isShowRowStripes() {
[echo] return rowStripes;
[echo] }
[echo]
[echo] public boolean isShowFirstColumn() {
[echo] return firstColumn;
[echo] }
[echo]
[echo] public boolean isShowLastColumn() {
[echo] return lastColumn;
[echo] }
[echo]
[echo] public String getName() {
[echo] return style.getName();
[echo] }
[echo]
[echo]
[echo] =====================================================
[echo] == File: <https://builds.apache.org/job/POI-DSL-OpenJDK/ws/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestTableStyles.java>
[echo] =====================================================
[echo] package org.apache.poi.xssf.usermodel;
[echo]
[echo] import static org.junit.Assert.assertEquals;
[echo] import static org.junit.Assert.assertNotNull;
[echo] import static org.junit.Assert.assertNull;
[echo] import static org.junit.Assert.assertTrue;
[echo]
[echo] import org.apache.poi.ss.usermodel.DifferentialStyleProvider;
[echo] import org.apache.poi.ss.usermodel.FontFormatting;
[echo] import org.apache.poi.ss.usermodel.PatternFormatting;
[echo] import org.apache.poi.ss.usermodel.Table;
[echo] import org.apache.poi.ss.usermodel.TableStyle;
[echo] import org.apache.poi.ss.usermodel.TableStyleInfo;
[echo] import org.apache.poi.ss.usermodel.TableStyleType;
[echo] import org.apache.poi.xssf.XSSFTestDataSamples;
[echo] import org.junit.Test;
[echo]
[echo] /**
[echo] * Test built-in table styles
[echo] */
[echo] public class TestTableStyles {
[echo]
[echo] /**
[echo] * Test that a built-in style is initialized properly
[echo] */
[echo] @Test
[echo] public void testBuiltinStyleInit() {
[echo] TableStyle style = XSSFBuiltinTableStyle.TableStyleMedium2.getStyle();
[echo] assertNotNull("no style found for Medium2", style);
[echo] assertNull("Should not have style info for blankRow", style.getStyle(TableStyleType.blankRow));
[echo] DifferentialStyleProvider headerRow = style.getStyle(TableStyleType.headerRow);
[echo] assertNotNull("no header row style", headerRow);
[echo] FontFormatting font = headerRow.getFontFormatting();
[echo] assertNotNull("No header row font formatting", font);
[echo] assertTrue("header row not bold", font.isBold());
[echo] PatternFormatting fill = headerRow.getPatternFormatting();
[echo] assertNotNull("No header fill", fill);
[echo] assertEquals("wrong header fill", 4, ((XSSFColor) fill.getFillBackgroundColorColor()).getTheme());
[echo] }
[echo]
[echo] @Test
[echo] public void testCustomStyle() throws Exception {
[echo] XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("tableStyle.xlsx");
[echo]
[echo] Table table = wb.getTable("Table1");
[echo] assertNotNull("missing table", table);
[echo]
[echo] TableStyleInfo style = table.getStyle();
[echo] assertNotNull("Missing table style info", style);
[echo] assertNotNull("Missing table style", style.getStyle());
[echo]
[echo] =====================================================
[echo] == File: <https://builds.apache.org/job/POI-DSL-OpenJDK/ws/src/resources/ooxml/org/apache/poi/xssf/usermodel/presetTableStyles.xml>
[echo] =====================================================
[echo] <?xml version="1.0" encoding="utf-8"?>
[echo] <presetTableStyles>
[echo] <TableStyleMedium28>
[echo] <dxfs count="7">
[echo] <dxf>
[echo] <fill>
[echo] <patternFill patternType="solid">
[echo] <fgColor theme="9" tint="0.59999389629810485"/>
[echo] <bgColor theme="9" tint="0.59999389629810485"/>
[echo] </patternFill>
[echo] </fill>
[echo] </dxf>
[echo] <dxf>
[echo] <fill>
[echo] <patternFill patternType="solid">
[echo] <fgColor theme="9" tint="0.59999389629810485"/>
[echo] <bgColor theme="9" tint="0.59999389629810485"/>
[echo] </patternFill>
[echo] </fill>
[echo] </dxf>
[echo] <dxf>
[echo] <font>
[echo] <b/>
[echo] <color theme="1"/>
[echo] </font>
[echo] </dxf>
[echo] <dxf>
[echo] <font>
[echo] <b/>
[echo] <color theme="1"/>
[echo] </font>
[echo] </dxf>
[echo] <dxf>
[echo] <font>
[echo] <b/>
[echo] <color theme="1"/>
[echo] </font>
[echo] <border>
[echo] <top style="medium">
[echo] <color theme="9"/>
[echo] </top>
[echo] </border>
[echo] </dxf>
[echo] <dxf>
[echo] <font>
[echo] <b/>
[echo] <color theme="1"/>
[echo] </font>
[echo] </dxf>
[echo] <dxf>
BUILD FAILED
<https://builds.apache.org/job/POI-DSL-OpenJDK/ws/build.xml>:2168: condition satisfied
Total time: 25 minutes 28 seconds
Build step 'Invoke Ant' marked build as failure
Skipping publisher since build result is FAILURE
Archiving artifacts
Compressed 226.30 MB of artifacts by 42.6% relative to #144
Skipping publisher since build result is FAILURE
Recording test results
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
Jenkins build is back to normal : POI-DSL-OpenJDK #148
Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://builds.apache.org/job/POI-DSL-OpenJDK/148/display/redirect?page=changes>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org